Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for splitList (0.17 sec)

  1. misc/ios/go_ios_exec.go

    	}
    	if strings.HasPrefix(cwd, goroot) {
    		subdir, err := filepath.Rel(goroot, cwd)
    		if err != nil {
    			return "", false, err
    		}
    		return subdir, true, nil
    	}
    
    	for _, p := range filepath.SplitList(build.Default.GOPATH) {
    		pabs, err := filepath.EvalSymlinks(p)
    		if err != nil {
    			return "", false, err
    		}
    		if !strings.HasPrefix(cwd, pabs) {
    			continue
    		}
    		subdir, err := filepath.Rel(pabs, cwd)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Jun 18 16:32:49 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. src/bytes/bytes_test.go

    			if j != expect {
    				b.Fatal("bad count", j, expect)
    			}
    		}
    		for i := 0; i < len(buf); i++ {
    			buf[i] = 0
    		}
    	})
    }
    
    type SplitTest struct {
    	s   string
    	sep string
    	n   int
    	a   []string
    }
    
    var splittests = []SplitTest{
    	{"", "", -1, []string{}},
    	{abcd, "a", 0, nil},
    	{abcd, "", 2, []string{"a", "bcd"}},
    	{abcd, "a", -1, []string{"", "bcd"}},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 19 19:09:04 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  3. api/go1.txt

    pkg path/filepath, func Match(string, string) (bool, error)
    pkg path/filepath, func Rel(string, string) (string, error)
    pkg path/filepath, func Split(string) (string, string)
    pkg path/filepath, func SplitList(string) []string
    pkg path/filepath, func ToSlash(string) string
    pkg path/filepath, func VolumeName(string) string
    pkg path/filepath, func Walk(string, WalkFunc) error
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top