Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for mkstruct (0.38 sec)

  1. pkg/slices/slices_test.go

    			}
    		})
    	}
    }
    
    // nolint: unused
    type myStruct struct {
    	a, b, c, d string
    	n          int
    }
    
    func makeRandomStructs(n int) []*myStruct {
    	rand.Seed(42) // nolint: staticcheck
    	structs := make([]*myStruct, n)
    	for i := 0; i < n; i++ {
    		structs[i] = &myStruct{n: rand.Intn(n)} // nolint: gosec
    	}
    	return structs
    }
    
    const N = 100_000
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. src/go/doc/reader.go

    // reader.lookupType.
    type namedType struct {
    	doc  string       // doc comment for type
    	name string       // type name
    	decl *ast.GenDecl // nil if declaration hasn't been seen yet
    
    	isEmbedded bool        // true if this type is embedded
    	isStruct   bool        // true if this type is a struct
    	embedded   embeddedSet // true if the embedded type is a pointer
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  3. pkg/kube/inject/inject.go

    	metadata := &params.pod.ObjectMeta
    	cluster := params.valuesConfig.asStruct.GetGlobal().GetMultiCluster().GetClusterName()
    	// TODO allow overriding the values.global network in injection with the system namespace label
    	network := params.valuesConfig.asStruct.GetGlobal().GetNetwork()
    	// params may be set from webhook URL, take priority over values yaml
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  4. pkg/kube/inject/webhook.go

    		if err != nil {
    			return nil, err
    		}
    		ret[k] = p
    	}
    	return ret, nil
    }
    
    type ValuesConfig struct {
    	raw      string
    	asStruct *opconfig.Values
    	asMap    map[string]any
    }
    
    func (v ValuesConfig) Struct() *opconfig.Values {
    	return v.asStruct
    }
    
    func (v ValuesConfig) Map() map[string]any {
    	return v.asMap
    }
    
    func NewValuesConfig(v string) (ValuesConfig, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:59:39 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  5. common/config/.golangci.yml

        - typecheck
        - unconvert
        - unparam
        - unused
        - gci
        - gosec
      fast: false
    linters-settings:
      errcheck:
        # report about not checking of errors in type assertions: `a := b.(MyStruct)`;
        # default is false: such cases aren't reported by default.
        check-type-assertions: false
        # report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 20:03:06 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  6. pilot/test/xds/fake.go

    		}))
    	}
    	adscConn, err := adsc.New(f.Listener.Addr().String(), &adsc.ADSConfig{
    		Config: adsc.Config{
    			IP:        p.IPAddresses[0],
    			NodeType:  p.Type,
    			Meta:      p.Metadata.ToStruct(),
    			Locality:  p.Locality,
    			Namespace: p.ConfigNamespace,
    			GrpcOpts:  opts,
    		},
    		InitialDiscoveryRequests: initialWatch,
    	})
    	if err != nil {
    		f.t.Fatalf("Error connecting: %v", err)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 16:08:52 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/implementing_custom_tasks.adoc

    |`@IgnoreEmptyDirectories`
    |Used with `@InputFiles` or `@InputDirectory` to instruct Gradle to track only changes to the contents of directories and not differences in the directories themselves.
    
    |`@NormalizeLineEndings`
    |Used with `@InputFiles`, `@InputDirectory` or `@Classpath` to instruct Gradle to normalize line endings when calculating up-to-date checks or build cache keys
    |===
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 05:34:54 UTC 2024
    - 37.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/value.go

    		// not supported on SSA variables.
    		// TODO: allow if all indexes are constant.
    		if t.NumElem() <= 1 {
    			return CanSSA(t.Elem())
    		}
    		return false
    	case types.TSTRUCT:
    		if t.NumFields() > MaxStruct {
    			return false
    		}
    		for _, t1 := range t.Fields() {
    			if !CanSSA(t1.Type) {
    				return false
    			}
    		}
    		return true
    	default:
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store.go

    		}
    		preparedKey = string(lastKey) + "\x00"
    	}
    
    	if v.IsNil() {
    		// Ensure that we never return a nil Items pointer in the result for consistency.
    		v.Set(reflect.MakeSlice(v.Type(), 0, 0))
    	}
    
    	// instruct the client to begin querying from immediately after the last key we returned
    	// we never return a key that the client wouldn't be allowed to see
    	if hasMore {
    		// we want to start immediately after the last key
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 11:56:42 UTC 2024
    - 35.2K bytes
    - Viewed (0)
Back to top