Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 673 for SplitV (0.13 sec)

  1. src/runtime/testdata/testprog/syscalls_linux.go

    		return false, false, fmt.Errorf("unexpected status file format: %s:\n%s", statusFile, status)
    	}
    	stateLine := bytes.SplitN(lines[stateLineIdx], []byte{':'}, 2)
    	if len(stateLine) != 2 {
    		// Malformed status file?
    		return false, false, fmt.Errorf("unexpected status file format: %s:\n%s", statusFile, status)
    	}
    	// Check if it's a zombie thread.
    	return !bytes.Contains(stateLine[1], []byte{'Z'}), true, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. cmd/signature-v4-parser.go

    	creds := strings.SplitN(strings.TrimSpace(credElement), "=", 2)
    	if len(creds) != 2 {
    		return ch, ErrMissingFields
    	}
    	if creds[0] != "Credential" {
    		return ch, ErrMissingCredTag
    	}
    	credElements := strings.Split(strings.TrimSpace(creds[1]), SlashSeparator)
    	if len(credElements) < 5 {
    		return ch, ErrCredMalformed
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. cmd/leak-detect_test.go

    	buf := debug.Stack()
    	// runtime stack of go routines will be listed with 2 blank spaces between each of them, so split on "\n\n" .
    	for _, g := range strings.Split(string(buf), "\n\n") {
    		// Again split on a new line, the first line of the second half contains the info about the go routine.
    		sl := strings.SplitN(g, "\n", 2)
    		if len(sl) != 2 {
    			continue
    		}
    		stack := strings.TrimSpace(sl[1])
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. src/path/path.go

    	if out.w == 0 {
    		return "."
    	}
    
    	return out.string()
    }
    
    // Split splits path immediately following the final slash,
    // separating it into a directory and file name component.
    // If there is no slash in path, Split returns an empty dir and
    // file set to path.
    // The returned values have the property that path = dir+file.
    func Split(path string) (dir, file string) {
    	i := bytealg.LastIndexByteString(path, '/')
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 23 17:33:57 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  5. src/go/types/eval_test.go

    					str, typ := split(s[2:len(s)-2], ", ")
    					str, val := split(str, "=>")
    					testEval(t, fset, pkg, comment.Pos(), str, nil, typ, val)
    				}
    			}
    		}
    	}
    }
    
    // gotypesalias controls the use of Alias types.
    var gotypesalias = godebug.New("#gotypesalias")
    
    // split splits string s at the first occurrence of s, trimming spaces.
    func split(s, sep string) (string, string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 19:56:15 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. pkg/version/version.go

    func NewBuildInfoFromOldString(oldOutput string) (BuildInfo, error) {
    	res := BuildInfo{}
    
    	lines := strings.Split(oldOutput, "\n")
    	for _, line := range lines {
    		if strings.TrimSpace(line) == "" {
    			continue
    		}
    		fields := strings.SplitN(line, ":", 2)
    		if fields != nil {
    			if len(fields) != 2 {
    				return BuildInfo{}, fmt.Errorf("invalid BuildInfo input, field '%s' is not valid", fields[0])
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 29 14:15:26 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  7. internal/arn/arn.go

    	// the ARN would not match any configured ARNs in the server.
    	if ps[4] != "" {
    		err = errors.New("invalid ARN - unsupported account-id field")
    		return
    	}
    
    	res := strings.SplitN(ps[5], "/", 2)
    	if len(res) != 2 {
    		err = errors.New("invalid ARN - resource does not contain a \"/\"")
    		return
    	}
    
    	if res[0] != string(arnResourceTypeRole) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 08:31:34 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. tests/util/leak/check.go

    func (g goroutineByID) Less(i, j int) bool { return g[i].id < g[j].id }
    func (g goroutineByID) Swap(i, j int)      { g[i], g[j] = g[j], g[i] }
    
    func interestingGoroutine(g string) (*goroutine, error) {
    	sl := strings.SplitN(g, "\n", 2)
    	if len(sl) != 2 {
    		return nil, fmt.Errorf("error parsing stack: %q", g)
    	}
    	stack := strings.TrimSpace(sl[1])
    	if strings.HasPrefix(stack, "testing.RunTests") {
    		return nil, nil
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 20 10:22:38 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/util/arguments.go

    	}
    	// Remove the starting --
    	arg = strings.TrimPrefix(arg, "--")
    	// Split the string on =. Return only two substrings, since we want only key/value, but the value can include '=' as well
    	keyvalSlice := strings.SplitN(arg, "=", 2)
    
    	// Make sure both a key and value is present
    	if len(keyvalSlice) != 2 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 11:01:00 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/features/features.go

    func NewFeatureGate(f *FeatureList, value string) (map[string]bool, error) {
    	featureGate := map[string]bool{}
    	for _, s := range strings.Split(value, ",") {
    		if len(s) == 0 {
    			continue
    		}
    
    		arr := strings.SplitN(s, "=", 2)
    		if len(arr) != 2 {
    			return nil, errors.Errorf("missing bool value for feature-gate key:%s", s)
    		}
    
    		k := strings.TrimSpace(arr[0])
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 13:55:11 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top