Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 564 for SLICE (0.38 sec)

  1. tests/joins_test.go

    	}
    
    	CheckUser(t, user2, user)
    }
    
    func TestJoinsForSlice(t *testing.T) {
    	users := []User{
    		*GetUser("slice-joins-1", Config{Company: true, Manager: true, Account: true}),
    		*GetUser("slice-joins-2", Config{Company: true, Manager: true, Account: true}),
    		*GetUser("slice-joins-3", Config{Company: true, Manager: true, Account: true}),
    	}
    
    	DB.Create(&users)
    
    	var userIDs []uint
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/authentication/request/headerrequest/requestheader.go

    	"k8s.io/apiserver/pkg/authentication/user"
    )
    
    // StringSliceProvider is a way to get a string slice value.  It is heavily used for authentication headers among other places.
    type StringSliceProvider interface {
    	// Value returns the current string slice.  Callers should never mutate the returned value.
    	Value() []string
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:19:54 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. scan.go

    		}
    
    		switch reflectValue.Kind() {
    		case reflect.Slice, reflect.Array:
    			var (
    				elem        reflect.Value
    				isArrayKind = reflectValue.Kind() == reflect.Array
    			)
    
    			if !update || reflectValue.Len() == 0 {
    				update = false
    				if isArrayKind {
    					db.Statement.ReflectValue.Set(reflect.Zero(reflectValue.Type()))
    				} else {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. src/cmd/nm/nm.go

    			continue
    		}
    
    		found = true
    
    		switch *sortOrder {
    		case "address":
    			sort.Slice(syms, func(i, j int) bool { return syms[i].Addr < syms[j].Addr })
    		case "name":
    			sort.Slice(syms, func(i, j int) bool { return syms[i].Name < syms[j].Name })
    		case "size":
    			sort.Slice(syms, func(i, j int) bool { return syms[i].Size > syms[j].Size })
    		}
    
    		for _, sym := range syms {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. src/encoding/binary/binary.go

    // For compound structures, it sums the sizes of the elements. Thus, for instance, for a slice
    // it returns the length of the slice times the element size and does not count the memory
    // occupied by the header. If the type of v is not acceptable, dataSize returns -1.
    func dataSize(v reflect.Value) int {
    	switch v.Kind() {
    	case reflect.Slice, reflect.Array:
    		t := v.Type().Elem()
    		if size, ok := structSize.Load(t); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:29:31 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  6. src/runtime/cgocall.go

    		// Now we need to set gp.cgoCtxt = s, but we could get
    		// a SIGPROF signal while manipulating the slice, and
    		// the SIGPROF handler could pick up gp.cgoCtxt while
    		// tracing up the stack.  We need to ensure that the
    		// handler always sees a valid slice, so set the
    		// values in an order such that it always does.
    		p := (*slice)(unsafe.Pointer(&gp.cgoCtxt))
    		atomicstorep(unsafe.Pointer(&p.array), unsafe.Pointer(&s[0]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  7. src/encoding/json/decode.go

    //   - map[string]interface{}, for JSON objects
    //   - nil for JSON null
    //
    // To unmarshal a JSON array into a slice, Unmarshal resets the slice length
    // to zero and then appends each element to the slice.
    // As a special case, to unmarshal an empty JSON array into a slice,
    // Unmarshal replaces the slice with a new empty slice.
    //
    // To unmarshal a JSON array into a Go array, Unmarshal decodes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/apis/kubeadm/v1beta3/conversion.go

    }
    
    // convertToArgs takes a argument map and converts it to a slice of arguments.
    // Te resulting argument slice is sorted alpha-numerically.
    func convertToArgs(in map[string]string) []kubeadm.Arg {
    	if in == nil {
    		return nil
    	}
    	args := make([]kubeadm.Arg, 0, len(in))
    	for k, v := range in {
    		args = append(args, kubeadm.Arg{Name: k, Value: v})
    	}
    	sort.Slice(args, func(i, j int) bool {
    		if args[i].Name == args[j].Name {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 13 06:41:07 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. doc/go_spec.html

    The <i>capacity</i> is a measure of that extent: it is the sum of
    the length of the slice and the length of the array beyond the slice;
    a slice of length up to that capacity can be created by
    <a href="#Slice_expressions"><i>slicing</i></a> a new one from the original slice.
    The capacity of a slice <code>a</code> can be discovered using the
    built-in function <a href="#Length_and_capacity"><code>cap(a)</code></a>.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (1)
  10. src/encoding/gob/encoder_test.go

    // Don't crash, just give error when allocating a huge slice.
    // Issue 8084.
    func TestErrorForHugeSlice(t *testing.T) {
    	// Encode an int slice.
    	buf := new(bytes.Buffer)
    	slice := []int{1, 1, 1, 1, 1, 1, 1, 1, 1, 1}
    	err := NewEncoder(buf).Encode(slice)
    	if err != nil {
    		t.Fatal("encode:", err)
    	}
    	// Reach into the buffer and smash the count to make the encoded slice very long.
    	buf.Bytes()[buf.Len()-len(slice)-1] = 0xfa
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
Back to top