Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 75 for stringSlice (0.63 sec)

  1. src/encoding/json/decode_test.go

    	EmptyMap map[string]Small
    	NilMap   map[string]Small
    
    	Slice   []Small
    	SliceP  []*Small
    	PSlice  *[]Small
    	PSliceP *[]*Small
    
    	EmptySlice []Small
    	NilSlice   []Small
    
    	StringSlice []string
    	ByteSlice   []byte
    
    	Small   Small
    	PSmall  *Small
    	PPSmall **Small
    
    	Interface  any
    	PInterface *any
    
    	unexported int
    }
    
    type Small struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/listener.go

    		if !fullWildcardFound {
    			chain.sniHosts = append([]string{}, chain.sniHosts...)
    			sort.Stable(sort.StringSlice(chain.sniHosts))
    			match.ServerNames = chain.sniHosts
    		}
    	}
    	if len(chain.destinationCIDRs) > 0 {
    		chain.destinationCIDRs = append([]string{}, chain.destinationCIDRs...)
    		sort.Stable(sort.StringSlice(chain.destinationCIDRs))
    		for _, d := range chain.destinationCIDRs {
    			cidr := util.ConvertAddressToCidr(d)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(IntSlice).Search", Method, 0},
    		{"(IntSlice).Sort", Method, 0},
    		{"(IntSlice).Swap", Method, 0},
    		{"(StringSlice).Len", Method, 0},
    		{"(StringSlice).Less", Method, 0},
    		{"(StringSlice).Search", Method, 0},
    		{"(StringSlice).Sort", Method, 0},
    		{"(StringSlice).Swap", Method, 0},
    		{"Find", Func, 19},
    		{"Float64Slice", Type, 0},
    		{"Float64s", Func, 0},
    		{"Float64sAreSorted", Func, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  4. src/internal/filepathlite/path_plan9.go

    		return "", errInvalidPath
    	}
    	return path, nil
    }
    
    // IsAbs reports whether the path is absolute.
    func IsAbs(path string) bool {
    	return stringslite.HasPrefix(path, "/") || stringslite.HasPrefix(path, "#")
    }
    
    // volumeNameLen returns length of the leading volume name on Windows.
    // It returns 0 elsewhere.
    func volumeNameLen(path string) int {
    	return 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 952 bytes
    - Viewed (0)
  5. src/runtime/security_unix.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package runtime
    
    import (
    	"internal/stringslite"
    )
    
    func secure() {
    	initSecureMode()
    
    	if !isSecureMode() {
    		return
    	}
    
    	// When secure mode is enabled, we do one thing: enforce specific
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 866 bytes
    - Viewed (0)
  6. src/strings/clone.go

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package strings
    
    import (
    	"internal/stringslite"
    )
    
    // Clone returns a fresh copy of s.
    // It guarantees to make a copy of s into a new allocation,
    // which can be important when retaining only a small substring
    // of a much larger string. Using Clone can help such programs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 01:23:42 UTC 2024
    - 809 bytes
    - Viewed (0)
  7. src/runtime/symtabinl_test.go

    			const wantFile = "symtabinl_test.go"
    			if !stringslite.HasSuffix(file, wantFile) {
    				t.Errorf("tiuTest+%#x: want file ...%s, got %s", pc-pc1, wantFile, file)
    			}
    
    			sf := u.srcFunc(uf)
    
    			name := sf.name()
    			const namePrefix = "runtime."
    			if stringslite.HasPrefix(name, namePrefix) {
    				name = name[len(namePrefix):]
    			}
    			if !stringslite.HasPrefix(name, "tiu") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. src/runtime/os_plan9.go

    		if s[i] == t[0] && stringslite.HasPrefix(s[i:], t) {
    			return i
    		}
    	}
    	return -1
    }
    
    func atolwhex(p string) int64 {
    	for stringslite.HasPrefix(p, " ") || stringslite.HasPrefix(p, "\t") {
    		p = p[1:]
    	}
    	neg := false
    	if stringslite.HasPrefix(p, "-") || stringslite.HasPrefix(p, "+") {
    		neg = p[0] == '-'
    		p = p[1:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. src/net/dnsconfig_unix.go

    				switch {
    				case stringslite.HasPrefix(s, "ndots:"):
    					n, _, _ := dtoi(s[6:])
    					if n < 0 {
    						n = 0
    					} else if n > 15 {
    						n = 15
    					}
    					conf.ndots = n
    				case stringslite.HasPrefix(s, "timeout:"):
    					n, _, _ := dtoi(s[8:])
    					if n < 1 {
    						n = 1
    					}
    					conf.timeout = time.Duration(n) * time.Second
    				case stringslite.HasPrefix(s, "attempts:"):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 02 22:14:43 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. src/crypto/internal/boring/fipstls/tls.go

    	// Since this is an internal package, testing that this isn't used on the
    	// other operating systems should suffice to catch any mistakes.
    	if !stringslite.HasSuffix(name, "_test") && !stringslite.HasSuffix(name, ".test") && name != "NaClMain" && name != "" {
    		panic("fipstls: invalid use of Abandon in " + name)
    	}
    	required.Store(false)
    }
    
    // provided by runtime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top