Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 209 for nelem (0.09 sec)

  1. src/path/filepath/path_plan9.go

    	return strings.Split(path, string(ListSeparator))
    }
    
    func abs(path string) (string, error) {
    	return unixAbs(path)
    }
    
    func join(elem []string) string {
    	// If there's a bug here, fix the logic in ./path_unix.go too.
    	for i, e := range elem {
    		if e != "" {
    			return Clean(strings.Join(elem[i:], string(Separator)))
    		}
    	}
    	return ""
    }
    
    func sameWord(a, b string) bool {
    	return a == b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 926 bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag_old.go

    }
    
    func checkArguments(fields []string) error {
    	for _, arg := range fields[1:] {
    		for _, elem := range strings.Split(arg, ",") {
    			if strings.HasPrefix(elem, "!!") {
    				return fmt.Errorf("invalid double negative in build constraint: %s", arg)
    			}
    			elem = strings.TrimPrefix(elem, "!")
    			for _, c := range elem {
    				if !unicode.IsLetter(c) && !unicode.IsDigit(c) && c != '_' && c != '.' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. src/reflect/benchmark_test.go

    	SliceAny     Value
    	MapStringAny Value
    }{
    	Bool:         ValueOf(new(bool)).Elem(),
    	String:       ValueOf(new(string)).Elem(),
    	Bytes:        ValueOf(new([]byte)).Elem(),
    	NamedBytes:   ValueOf(new(namedBytes)).Elem(),
    	BytesArray:   ValueOf(new([32]byte)).Elem(),
    	SliceAny:     ValueOf(new([]any)).Elem(),
    	MapStringAny: ValueOf(new(map[string]any)).Elem(),
    }
    
    var sinkAll struct {
    	RawBool   bool
    	RawString string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Nov 19 17:09:03 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/iexport.go

    //
    //     type PointerType struct {
    //         Tag  itag // pointerType
    //         Elem typeOff
    //     }
    //
    //     type SliceType struct {
    //         Tag  itag // sliceType
    //         Elem typeOff
    //     }
    //
    //     type ArrayType struct {
    //         Tag  itag // arrayType
    //         Len  uint64
    //         Elem typeOff
    //     }
    //
    //     type ChanType struct {
    //         Tag  itag   // chanType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:40:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testshared/testdata/exe/exe.go

    	// exercising https://golang.org/issues/17594
    	reflect.TypeOf(os.Stdout).Elem()
    	runtime.GC()
    	depBase.V = depBase.F() + 1
    
    	var c *C
    	if reflect.TypeOf(F).Out(0) != reflect.TypeOf(c) {
    		panic("bad reflection results, see golang.org/issue/18252")
    	}
    
    	sp := reflect.New(reflect.TypeOf(slicePtr).Elem())
    	s := sp.Interface()
    
    	if reflect.TypeOf(s) != reflect.TypeOf(slicePtr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 906 bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/facts/imports.go

    						addType(targs.At(i))
    					}
    				}
    			}
    		case *types.Pointer:
    			addType(T.Elem())
    		case *types.Slice:
    			addType(T.Elem())
    		case *types.Array:
    			addType(T.Elem())
    		case *types.Chan:
    			addType(T.Elem())
    		case *types.Map:
    			addType(T.Key())
    			addType(T.Elem())
    		case *types.Signature:
    			addType(T.Params())
    			addType(T.Results())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. src/internal/types/testdata/fixedbugs/issue46275.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package issue46275
    
    type N[T any] struct {
    	*N[T]
    	t T
    }
    
    func (n *N[T]) Elem() T {
    	return n.t
    }
    
    type I interface {
    	Elem() string
    }
    
    func _() {
    	var n1 *N[string]
    	var _ I = n1
    	type NS N[string]
    	var n2 *NS
    	var _ I = n2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 387 bytes
    - Viewed (0)
  8. src/reflect/iter.go

    		return rangeNum[uint32](v.Uint())
    	case Uint64:
    		return rangeNum[uint64](v.Uint())
    	case Uintptr:
    		return rangeNum[uintptr](v.Uint())
    	case Pointer:
    		if v.Elem().kind() != Array {
    			break
    		}
    		return func(yield func(Value) bool) {
    			v = v.Elem()
    			for i := range v.Len() {
    				if !yield(ValueOf(i)) {
    					return
    				}
    			}
    		}
    	case Array, Slice:
    		return func(yield func(Value) bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 13:40:11 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. src/cmd/internal/pkgpattern/pkgpattern.go

    func replaceVendor(x, repl string) string {
    	if !strings.Contains(x, "vendor") {
    		return x
    	}
    	elem := strings.Split(x, "/")
    	for i := 0; i < len(elem)-1; i++ {
    		if elem[i] == "vendor" {
    			elem[i] = repl
    		}
    	}
    	return strings.Join(elem, "/")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 16:43:40 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  10. test/fixedbugs/issue35073b.go

    	m := make(map[string]string) // ERROR "moved to heap: m" "make\(map\[string\]string\) escapes to heap"
    
    	_ = unsafe.Pointer(reflect.ValueOf(&n).Elem().UnsafeAddr()) // ERROR "inlining call"
    	_ = unsafe.Pointer(reflect.ValueOf(&m).Elem().Pointer())    // ERROR "inlining call"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:12:49 UTC 2023
    - 706 bytes
    - Viewed (0)
Back to top