Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for splitList (0.13 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)
Back to top