Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 155 for iota (2.18 sec)

  1. src/runtime/traceruntime.go

    //
    // Note that traceBlockReasons should not be compared, since reasons that are
    // distinct by name may *not* be distinct by value.
    type traceBlockReason uint8
    
    const (
    	traceBlockGeneric traceBlockReason = iota
    	traceBlockForever
    	traceBlockNet
    	traceBlockSelect
    	traceBlockCondWait
    	traceBlockSync
    	traceBlockChanSend
    	traceBlockChanRecv
    	traceBlockGCMarkAssist
    	traceBlockGCSweep
    	traceBlockSystemGoroutine
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/walk.go

    	}
    	if mapfast(t) == mapslow {
    		return typecheck.LookupRuntime(name, t.Key(), t.Elem(), t.Key())
    	}
    	return typecheck.LookupRuntime(name, t.Key(), t.Elem())
    }
    
    const (
    	mapslow = iota
    	mapfast32
    	mapfast32ptr
    	mapfast64
    	mapfast64ptr
    	mapfaststr
    	nmapfast
    )
    
    type mapnames [nmapfast]string
    
    func mkmapnames(base string, ptr string) mapnames {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 20:56:00 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go

    // It is used to identify whether a flag appears;
    // the standard boolean flag cannot
    // distinguish missing from unset.
    // It also satisfies flag.Value.
    type triState int
    
    const (
    	unset triState = iota
    	setTrue
    	setFalse
    )
    
    func triStateFlag(name string, value triState, usage string) *triState {
    	flag.Var(&value, name, usage)
    	return &value
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. src/go/types/check.go

    	scope         *Scope                 // top-most scope for lookups
    	pos           token.Pos              // if valid, identifiers are looked up as if at position pos (used by Eval)
    	iota          constant.Value         // value of iota in a constant declaration; nil otherwise
    	errpos        positioner             // if set, identifier position of a constant with inherited initializer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. src/crypto/tls/boring_test.go

    				testClientCert(t, listName+"->"+rootName[1:]+" (fips, client cert)", pool, leaf.key, list, shouldVerifyFIPS)
    				fipstls.Abandon()
    			}
    		}
    	}
    }
    
    const (
    	boringCertCA = iota
    	boringCertLeaf
    	boringCertFIPSOK = 0x80
    )
    
    func boringRSAKey(t *testing.T, size int) *rsa.PrivateKey {
    	k, err := rsa.GenerateKey(rand.Reader, size)
    	if err != nil {
    		t.Fatal(err)
    	}
    	return k
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:45:37 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  6. src/internal/types/errors/codes.go

    	//  of an assignment."
    	//
    	// Example:
    	//  var x = _
    	InvalidBlank
    
    	// InvalidIota occurs when the predeclared identifier iota is used outside
    	// of a constant declaration.
    	//
    	// Example:
    	//  var x = iota
    	InvalidIota
    
    	// MissingInitBody occurs when an init function is missing its body.
    	//
    	// Example:
    	//  func init()
    	MissingInitBody
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:50:48 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  7. src/net/conf.go

    	goos     string   // copy of runtime.GOOS, used for testing
    	mdnsTest mdnsTest // assume /etc/mdns.allow exists, for testing
    }
    
    // mdnsTest is for testing only.
    type mdnsTest int
    
    const (
    	mdnsFromSystem mdnsTest = iota
    	mdnsAssumeExists
    	mdnsAssumeDoesNotExist
    )
    
    var (
    	confOnce sync.Once // guards init of confVal via initConfVal
    	confVal  = &conf{goos: runtime.GOOS}
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  8. src/internal/trace/internal/oldtrace/parser.go

    type Frame struct {
    	PC uint64
    	// string ID of the function name
    	Fn uint64
    	// string ID of the file name
    	File uint64
    	Line int
    }
    
    const (
    	// Special P identifiers:
    	FakeP    = 1000000 + iota
    	TimerP   // contains timer unblocks
    	NetpollP // contains network unblocks
    	SyscallP // contains returns from syscalls
    	GCP      // contains GC state
    	ProfileP // contains recording of CPU profile samples
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/sccp.go

    // by just combining constant folding and constant propagation and dead code
    // elimination separately.
    
    // Three level lattice holds compile time knowledge about SSA value
    const (
    	top      int8 = iota // undefined
    	constant             // constant
    	bottom               // not a constant
    )
    
    type lattice struct {
    	tag int8   // lattice type
    	val *Value // constant value
    }
    
    type worklist struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:54:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  10. src/time/zoneinfo_read.go

    	//	number of standard/wall indicators
    	//	number of leap seconds
    	//	number of transition times
    	//	number of local time zones
    	//	number of characters of time zone abbrev strings
    	const (
    		NUTCLocal = iota
    		NStdWall
    		NLeap
    		NTime
    		NZone
    		NChar
    	)
    	var n [6]int
    	for i := 0; i < 6; i++ {
    		nn, ok := d.big4()
    		if !ok {
    			return nil, errBadData
    		}
    		if uint32(int(nn)) != nn {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top