Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 123 for iota (0.05 sec)

  1. src/internal/types/testdata/check/constdecl.go

    const (
    	c = len([1 - iota]int{})
    	d
    	e // ERROR "invalid array length"
    	f // ERROR "invalid array length"
    )
    
    // Test that identifiers in implicit (omitted) RHS
    // expressions of constant declarations are resolved
    // in the correct context; see issues #49157, #53585.
    const X = 2
    
    func _() {
    	const (
    		A    = iota // 0
    		iota = iota // 1
    		B           // 1 (iota is declared locally on prev. line)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 16:11:16 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/noder/codes.go

    const (
    	assignBlank codeAssign = iota
    	assignDef
    	assignExpr
    )
    
    // A codeDecl distinguishes among declaration encodings.
    type codeDecl int
    
    func (c codeDecl) Marker() pkgbits.SyncMarker { return pkgbits.SyncDecl }
    func (c codeDecl) Value() int                 { return int(c) }
    
    const (
    	declEnd codeDecl = iota
    	declFunc
    	declMethod
    	declVar
    	declOther
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 20:07:46 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/inline/inlheur/function_properties.go

    	// likewise.
    	FuncPropNeverReturns FuncPropBits = 1 << iota
    )
    
    type ParamPropBits uint32
    
    const (
    	// No info about this param
    	ParamNoInfo ParamPropBits = 0
    
    	// Parameter value feeds unmodified into a top-level interface
    	// call (this assumes the parameter is of interface type).
    	ParamFeedsInterfaceMethodCall ParamPropBits = 1 << iota
    
    	// Parameter value feeds unmodified into an interface call that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 18:52:53 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. src/syscall/net_fake.go

    package syscall
    
    const (
    	AF_UNSPEC = iota
    	AF_UNIX
    	AF_INET
    	AF_INET6
    )
    
    const (
    	SOCK_STREAM = 1 + iota
    	SOCK_DGRAM
    	SOCK_RAW
    	SOCK_SEQPACKET
    )
    
    const (
    	IPPROTO_IP   = 0
    	IPPROTO_IPV4 = 4
    	IPPROTO_IPV6 = 0x29
    	IPPROTO_TCP  = 6
    	IPPROTO_UDP  = 0x11
    )
    
    const (
    	SOMAXCONN = 0x80
    )
    
    const (
    	_ = iota
    	IPV6_V6ONLY
    	SO_ERROR
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 883 bytes
    - Viewed (0)
  5. src/cmd/doc/testdata/pkg.go

    }{
    	{"FieldVal1", 1}: {},
    	{"FieldVal2", 2}: {},
    	{"FieldVal3", 3}: {},
    }
    
    const (
    	_, _ uint64 = 2 * iota, 1 << iota
    	constLeft1, constRight1
    	ConstLeft2, constRight2
    	constLeft3, ConstRight3
    	ConstLeft4, ConstRight4
    )
    
    const (
    	ConstGroup1 unexportedType = iota
    	ConstGroup2
    	ConstGroup3
    )
    
    const ConstGroup4 ExportedType = ExportedType{}
    
    func newLongLine(ss ...string)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:16:55 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/syntax/tokens.go

    // not represent the literal kind well anymore. Remove it?
    const (
    	IntLit LitKind = iota
    	FloatLit
    	ImagLit
    	RuneLit
    	StringLit
    )
    
    type Operator uint
    
    //go:generate stringer -type Operator -linecomment tokens.go
    
    const (
    	_ Operator = iota
    
    	// Def is the : in :=
    	Def   // :
    	Not   // !
    	Recv  // <-
    	Tilde // ~
    
    	// precOrOr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  7. src/runtime/traceexp.go

    type traceExperiment uint8
    
    const (
    	// traceNoExperiment indicates no experiment.
    	traceNoExperiment traceExperiment = iota
    
    	// traceExperimentAllocFree is an experiment to add alloc/free events to the trace.
    	traceExperimentAllocFree
    )
    
    // Experimental events.
    const (
    	_ traceEv = 127 + iota
    
    	// Experimental events for ExperimentAllocFree.
    
    	// Experimental heap span events. IDs map reversibly to base addresses.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/loong64/a.out.go

    const (
    	NSNAME = 8
    	NSYM   = 50
    	NREG   = 32 // number of general registers
    	NFREG  = 32 // number of floating point registers
    )
    
    const (
    	REG_R0 = obj.RBaseLOONG64 + iota // must be a multiple of 32
    	REG_R1
    	REG_R2
    	REG_R3
    	REG_R4
    	REG_R5
    	REG_R6
    	REG_R7
    	REG_R8
    	REG_R9
    	REG_R10
    	REG_R11
    	REG_R12
    	REG_R13
    	REG_R14
    	REG_R15
    	REG_R16
    	REG_R17
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:04:54 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. src/internal/trace/event/requirements.go

    type SchedReqs struct {
    	Thread    Constraint
    	Proc      Constraint
    	Goroutine Constraint
    }
    
    // Constraint represents a various presence requirements.
    type Constraint uint8
    
    const (
    	MustNotHave Constraint = iota
    	MayHave
    	MustHave
    )
    
    // UserGoReqs is a common requirement among events that are running
    // or are close to running user code.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 685 bytes
    - Viewed (0)
  10. src/runtime/os_wasip1.go

    //go:noescape
    func random_get(buf unsafe.Pointer, bufLen size) errno
    
    type eventtype = uint8
    
    const (
    	eventtypeClock eventtype = iota
    	eventtypeFdRead
    	eventtypeFdWrite
    )
    
    type eventrwflags = uint16
    
    const (
    	fdReadwriteHangup eventrwflags = 1 << iota
    )
    
    type userdata = uint64
    
    // The go:wasmimport directive currently does not accept values of type uint16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7K bytes
    - Viewed (0)
Back to top