Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for Map (0.12 sec)

  1. doc/go1.17_spec.html

    type Bad2 interface {
    	Bad1
    }
    </pre>
    
    <h3 id="Map_types">Map types</h3>
    
    <p>
    A map is an unordered group of elements of one type, called the
    element type, indexed by a set of unique <i>keys</i> of another type,
    called the key type.
    The value of an uninitialized map is <code>nil</code>.
    </p>
    
    <pre class="ebnf">
    MapType     = "map" "[" KeyType "]" ElementType .
    KeyType     = Type .
    </pre>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  2. src/cmd/api/testdata/src/pkg/p1/p1.go

    func Now() Time {
    	var now Time
    	return now
    }
    
    var x = &S{
    	Public:     nil,
    	private:    nil,
    	PublicTime: Now(),
    }
    
    var parenExpr = (1 + 5)
    
    var funcLit = func() {}
    
    var m map[string]int
    
    var chanVar chan int
    
    var ifaceVar any = 5
    
    var assertVar = ifaceVar.(int)
    
    var indexVar = m["foo"]
    
    var Byte byte
    var ByteFunc func(byte) rune
    
    type ByteStruct struct {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  3. misc/wasm/wasm_exec.js

    					console.warn("exit code:", code);
    				}
    			};
    			this._exitPromise = new Promise((resolve) => {
    				this._resolveExitPromise = resolve;
    			});
    			this._pendingEvent = null;
    			this._scheduledTimeouts = new Map();
    			this._nextCallbackTimeoutID = 1;
    
    			const setInt64 = (addr, v) => {
    				this.mem.setUint32(addr + 0, v, true);
    				this.mem.setUint32(addr + 4, Math.floor(v / 4294967296), true);
    			}
    
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  4. src/cmd/cgo/ast.go

    	ast1 := parse(abspath, src, parser.SkipObjectResolution|parser.ParseComments)
    	ast2 := parse(abspath, src, parser.SkipObjectResolution)
    
    	f.Package = ast1.Name.Name
    	f.Name = make(map[string]*Name)
    	f.NamePos = make(map[*Name]token.Pos)
    
    	// In ast1, find the import "C" line and get any extra C preamble.
    	sawC := false
    	for _, decl := range ast1.Decls {
    		switch decl := decl.(type) {
    		case *ast.GenDecl:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  5. src/archive/tar/reader_test.go

    func TestParsePAX(t *testing.T) {
    	vectors := []struct {
    		in   string
    		want map[string]string
    		ok   bool
    	}{
    		{"", nil, true},
    		{"6 k=1\n", map[string]string{"k": "1"}, true},
    		{"10 a=name\n", map[string]string{"a": "name"}, true},
    		{"9 a=name\n", map[string]string{"a": "name"}, true},
    		{"30 mtime=1350244992.023960108\n", map[string]string{"mtime": "1350244992.023960108"}, true},
    		{"3 somelongkey=\n", nil, false},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  6. src/archive/zip/register.go

    	defer r.mu.Unlock()
    	var err error
    	if r.fr != nil {
    		err = r.fr.Close()
    		flateReaderPool.Put(r.fr)
    		r.fr = nil
    	}
    	return err
    }
    
    var (
    	compressors   sync.Map // map[uint16]Compressor
    	decompressors sync.Map // map[uint16]Decompressor
    )
    
    func init() {
    	compressors.Store(Store, Compressor(func(w io.Writer) (io.WriteCloser, error) { return &nopCloser{w}, nil }))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/arch/arch.go

    type Arch struct {
    	*obj.LinkArch
    	// Map of instruction names to enumeration.
    	Instructions map[string]obj.As
    	// Map of register names to enumeration.
    	Register map[string]int16
    	// Table of register prefix names. These are things like R for R(0) and SPR for SPR(268).
    	RegisterPrefix map[string]bool
    	// RegisterNumber converts R(10) into arm.REG_R10.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Mar 21 06:51:28 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  8. src/archive/tar/common.go

    	//
    	// When Writer.WriteHeader is called, the contents of Xattrs will take
    	// precedence over those in PAXRecords.
    	//
    	// Deprecated: Use PAXRecords instead.
    	Xattrs map[string]string
    
    	// PAXRecords is a map of PAX extended header records.
    	//
    	// User-defined records should have keys of the following form:
    	//	VENDOR.keyword
    	// Where VENDOR is some namespace in all uppercase, and keyword may
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  9. src/cmd/cgo/godefs.go

    	fmt.Fprintf(&buf, "\n")
    
    	override := make(map[string]string)
    
    	// Allow source file to specify override mappings.
    	// For example, the socket data structures refer
    	// to in_addr and in_addr6 structs but we want to be
    	// able to treat them as byte arrays, so the godefs
    	// inputs in package syscall say
    	//
    	//	// +godefs map struct_in_addr [4]byte
    	//	// +godefs map struct_in_addr6 [16]byte
    	//
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 08 14:33:35 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  10. misc/linkcheck/linkcheck.go

    }
    
    var (
    	mu          sync.Mutex
    	crawled     = make(map[string]bool)      // URL without fragment -> true
    	neededFrags = make(map[urlFrag][]string) // URL#frag -> who needs it
    )
    
    var aRx = regexp.MustCompile(`<a href=['"]?(/[^\s'">]+)`)
    
    // Owned by crawlLoop goroutine:
    var (
    	linkSources = make(map[string][]string) // url no fragment -> sources
    	fragExists  = make(map[urlFrag]bool)
    	problems    []string
    )
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 06 15:53:04 GMT 2021
    - 3.9K bytes
    - Viewed (0)
Back to top