Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
shenyizhong
/
minsync
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c8f64d52
authored
Dec 22, 2021
by
shenyizhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gofmt
1 parent
18bd56ba
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
20 additions
and
20 deletions
src/auth/auth.go
src/download/download.go
src/encrypt/encrypt.go
src/httpcli/httpcli.go
src/main.go
src/nodetree/nodetree.go
src/travloc/travloc.go
src/travloc/travloc_test.go
src/travremot/travremot.go
src/travremot/travremot_test.go
src/upload/upload.go
src/auth/auth.go
View file @
c8f64d5
...
...
@@ -2,8 +2,8 @@ package auth
import
(
"fmt"
"os"
"log"
"os"
)
func
init
()
{
...
...
src/download/download.go
View file @
c8f64d5
package
download
import
(
"os"
"log"
"github.com/sirupsen/logrus"
"log"
"minsync/nodetree"
"os"
)
func
init
()
{
...
...
src/encrypt/encrypt.go
View file @
c8f64d5
package
encrypt
import
(
_
"fmt"
_
"fmt"
"log"
)
...
...
src/httpcli/httpcli.go
View file @
c8f64d5
...
...
@@ -3,8 +3,8 @@ package httpcli
import
(
"fmt"
"io/ioutil"
"net/http"
"log"
"net/http"
)
func
init
()
{
...
...
src/main.go
View file @
c8f64d5
...
...
@@ -2,7 +2,6 @@ package main
import
(
"bytes"
"os"
"encoding/json"
_
"fmt"
_
"io/ioutil"
...
...
@@ -16,6 +15,7 @@ import (
"minsync/travremot"
_
"minsync/upload"
_
"net/http"
"os"
"runtime"
)
...
...
src/nodetree/nodetree.go
View file @
c8f64d5
package
nodetree
import
(
_
"fmt"
_
"fmt"
"log"
)
...
...
src/travloc/travloc.go
View file @
c8f64d5
package
travloc
import
(
_
"fmt"
"strings"
"os"
_
"fmt"
"io/ioutil"
"path"
"log"
"minsync/nodetree"
"os"
"path"
"strings"
)
func
init
()
{
...
...
@@ -84,7 +84,7 @@ func exploreRecursive(node *nodetree.NodeLoc, option *nodetree.OptionLoc) {
func
IsInSlice
(
slice
[]
string
,
s
string
)
bool
{
if
len
(
slice
)
==
0
{
return
false
;
return
false
}
isIn
:=
false
...
...
src/travloc/travloc_test.go
View file @
c8f64d5
package
travloc
import
(
"fmt"
"bytes"
"encoding/json"
"fmt"
"log"
"minsync/nodetree"
"os"
"runtime"
"testing"
"minsync/nodetree"
)
func
TestExplorer
(
t
*
testing
.
T
)
{
...
...
@@ -25,7 +25,7 @@ func TestExplorer(t *testing.T) {
}
option
.
SubFlag
=
true
option
.
IgnorePath
=
[]
string
{
`.git`
,
`.svn`
}
option
.
IgnorePath
=
[]
string
{
`.git`
,
`.svn`
}
option
.
IgnoreFile
=
[]
string
{
`.DS_Store`
,
`.gitignore`
}
result
,
err
:=
Explorer
(
option
)
...
...
src/travremot/travremot.go
View file @
c8f64d5
package
travremot
import
(
"strings"
"log"
"encoding/json"
"io/ioutil"
"net/http
"
"log
"
"minsync/auth"
"minsync/nodetree"
"net/http"
"strings"
)
func
init
()
{
...
...
@@ -47,7 +47,7 @@ func exploreRecursive(node *nodetree.NodeRemot, option *nodetree.OptionRemot) {
var
resp
*
http
.
Response
resp
,
err
:=
http
.
DefaultClient
.
Do
(
req
)
if
(
err
!=
nil
)
{
if
err
!=
nil
{
log
.
Println
(
err
)
}
...
...
src/travremot/travremot_test.go
View file @
c8f64d5
src/upload/upload.go
View file @
c8f64d5
package
upload
import
(
_
"fmt"
_
"fmt"
"log"
"minsync/nodetree"
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment