Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 507 for Map (0.02 sec)

  1. src/reflect/iter.go

    // If v's kind is Pointer, the pointer element type must have kind Array.
    // Otherwise v's kind must be Int, Int8, Int16, Int32, Int64,
    // Uint, Uint8, Uint16, Uint32, Uint64, Uintptr,
    // Array, Chan, Map, Slice, or String.
    func (v Value) Seq() iter.Seq[Value] {
    	if canRangeFunc(v.typ()) {
    		return func(yield func(Value) bool) {
    			rf := MakeFunc(v.Type().In(0), func(in []Value) []Value {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 13:40:11 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. src/runtime/mpagealloc_32bit.go

    	// The number of levels in the radix tree.
    	summaryLevels = 4
    
    	// Constants for testing.
    	pageAlloc32Bit = 1
    	pageAlloc64Bit = 0
    
    	// Number of bits needed to represent all indices into the L1 of the
    	// chunks map.
    	//
    	// See (*pageAlloc).chunks for more details. Update the documentation
    	// there should this number change.
    	pallocChunksL1Bits = 0
    )
    
    // See comment in mpagealloc_64bit.go.
    var levelBits = [summaryLevels]uint{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 20 20:08:25 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/expr2.go

    	_ = s /* ERROR "< not defined" */ < s
    }
    
    func maps() {
    	// basics
    	var m map[string]int
    	_ = m == nil
    	_ = m != nil
    	_ = m /* ERROR "< not defined" */ < nil
    
    	// maps are not otherwise comparable
    	_ = m /* ERROR "map can only be compared to nil" */ == m
    	_ = m /* ERROR "< not defined" */ < m
    }
    
    func funcs() {
    	// basics
    	var f func(int) float32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 5K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unreachable/unreachable.go

    			pass:     pass,
    			hasBreak: make(map[ast.Stmt]bool),
    			hasGoto:  make(map[string]bool),
    			labels:   make(map[string]ast.Stmt),
    		}
    		d.findLabels(body)
    		d.reachable = true
    		d.findDead(body)
    	})
    	return nil, nil
    }
    
    type deadState struct {
    	pass        *analysis.Pass
    	hasBreak    map[ast.Stmt]bool
    	hasGoto     map[string]bool
    	labels      map[string]ast.Stmt
    	breakTarget ast.Stmt
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  5. src/go/parser/interface.go

    // must not be nil.
    //
    // If the directory couldn't be read, a nil map and the respective error are
    // returned. If a parse error occurred, a non-nil but incomplete map and the
    // first error encountered are returned.
    func ParseDir(fset *token.FileSet, path string, filter func(fs.FileInfo) bool, mode Mode) (pkgs map[string]*ast.Package, first error) {
    	list, err := os.ReadDir(path)
    	if err != nil {
    		return nil, err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  6. src/internal/types/testdata/fixedbugs/issue66878.go

    package p
    
    func _[T bool](ch chan T) {
    	var _, _ T = <-ch
    }
    
    // offending code snippets from issue
    
    func _[T ~bool](ch <-chan T) {
    	var x, ok T = <-ch
    	println(x, ok)
    }
    
    func _[T ~bool](m map[int]T) {
    	var x, ok T = m[0]
    	println(x, ok)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 17:42:47 UTC 2024
    - 399 bytes
    - Viewed (0)
  7. src/net/nss_test.go

    			want: &nssConf{
    				sources: map[string][]nssSource{
    					"foo": {{source: "a"}, {source: "b"}},
    				},
    			},
    		},
    		{
    			name: "comment1",
    			in:   "   foo:a    b#c\n",
    			want: &nssConf{
    				sources: map[string][]nssSource{
    					"foo": {{source: "a"}, {source: "b"}},
    				},
    			},
    		},
    		{
    			name: "comment2",
    			in:   "   foo:a    b #c \n",
    			want: &nssConf{
    				sources: map[string][]nssSource{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:15:51 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  8. src/cmd/trace/jsontrace_test.go

    // "blocked" argument is equal to blocked.
    func filterBlocked(blocked string) eventFilterFn {
    	return func(e *format.Event, _ *format.Data) bool {
    		m, ok := e.Arg.(map[string]any)
    		if !ok {
    			return false
    		}
    		return m["blocked"] == blocked
    	}
    }
    
    // filterStackRootFunc returns an event filter that returns true if the function
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/syntax/testdata/issue23434.go

    package p
    
    type T /* ERROR unexpected newline */
    
    type Map map[int] /* ERROR unexpected newline */
    
    // Examples from go.dev/issue/23434:
    
    func g() {
    	m := make(map[string] /* ERROR unexpected ! */ !)
    	for {
    		x := 1
    		print(x)
    	}
    }
    
    func f() {
    	m := make(map[string] /* ERROR unexpected \) */ )
    	for {
    		x := 1
    		print(x)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 12:49:49 UTC 2023
    - 653 bytes
    - Viewed (0)
  10. src/cmd/go/internal/test/genflags.go

    package test
    
    // passFlagToTest contains the flags that should be forwarded to
    // the test binary with the prefix "test.".
    var passFlagToTest = map[string]bool {
    {{- range .testFlags}}
    	"{{.}}": true,
    {{- end }}
    }
    
    var passAnalyzersToVet = map[string]bool {
    {{- range .vetAnalyzers}}
    	"{{.}}": true,
    {{- end }}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 09 13:37:58 UTC 2023
    - 1.6K bytes
    - Viewed (0)
Back to top