Go fmt
This commit is contained in:
parent
b440b57fbf
commit
cc90b4ea10
4
main.go
4
main.go
@ -95,8 +95,8 @@ func split(r rune) bool {
|
||||
}
|
||||
func DetectionPath(gopath string) string {
|
||||
path := os.Getenv(gopath)
|
||||
arrPath := strings.FieldsFunc(path,split)
|
||||
for _,content := range arrPath {
|
||||
arrPath := strings.FieldsFunc(path, split)
|
||||
for _, content := range arrPath {
|
||||
fullPath := filepath.Join(content, "src", "github.com", "v2ray", "domain-list-community", "data")
|
||||
_, err := os.Stat(fullPath)
|
||||
if err == nil || os.IsExist(err) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user