Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 483 for iota (0.04 sec)

  1. test/rename1.go

    // Does not compile.
    
    package main
    
    func main() {
    	var n byte         // ERROR "not a type|expected type"
    	var y = float32(0) // ERROR "cannot call|expected function"
    	const (
    		a = 1 + iota // ERROR "invalid operation|incompatible types|cannot convert"
    	)
    	_, _ = n, y
    }
    
    const (
    	append     = 1
    	bool       = 2
    	byte       = 3
    	complex    = 4
    	complex64  = 5
    	complex128 = 6
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 14:07:00 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/wasm/a.out.go

    import "cmd/internal/obj"
    
    //go:generate go run ../stringer.go -i $GOFILE -o anames.go -p wasm
    
    const (
    	/* mark flags */
    	DONE          = 1 << iota
    	PRESERVEFLAGS // not allowed to clobber flags
    )
    
    /*
     *	wasm
     */
    const (
    	AGet = obj.ABaseWasm + obj.A_ARCHSPECIFIC + iota
    	ASet
    	ATee
    	ANot // alias for I32Eqz
    
    	// The following are low-level WebAssembly instructions.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 02 05:28:55 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/arm64/a.out.go

    const (
    	BIG = 2048 - 8
    )
    
    const (
    	/* mark flags */
    	LABEL = 1 << iota
    	LEAF
    	FLOAT
    	BRANCH
    	LOAD
    	FCMP
    	SYNC
    	LIST
    	FOLL
    	NOSCHED
    )
    
    const (
    	// optab is sorted based on the order of these constants
    	// and the first match is chosen.
    	// The more specific class needs to come earlier.
    	C_NONE   = iota + 1 // starting from 1, leave unclassified Addr's class as 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 17:56:30 UTC 2023
    - 18.1K bytes
    - Viewed (0)
  4. 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)
  5. src/internal/pkgbits/flags.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package pkgbits
    
    const (
    	flagSyncMarkers = 1 << iota // file format contains sync markers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 12 19:30:30 UTC 2022
    - 253 bytes
    - Viewed (0)
  6. src/go/printer/testdata/comments.golden

    const c0 = 0	// zero
    const (
    	c1	= iota	// c1
    	c2		// c2
    )
    
    // Alignment of comments in declarations>
    const (
    	_	T	= iota	// comment
    	_			// comment
    	_			// comment
    	_	= iota + 10
    	_	// comments
    
    	_		= 10	// comment
    	_	T	= 20	// comment
    )
    
    const (
    	_____	= iota	// foo
    	_		// bar
    	_	= 0	// bal
    	_		// bat
    )
    
    const (
    	_	T	= iota	// comment
    	_			// comment
    	_			// comment
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 25 23:11:14 UTC 2022
    - 11.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/bexport.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package typecheck
    
    // Tags. Must be < 0.
    const (
    	// Objects
    	packageTag = -(iota + 1)
    	constTag
    	typeTag
    	varTag
    	funcTag
    	endTag
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:52:50 UTC 2023
    - 293 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/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)
  10. src/cmd/compile/internal/types2/basic.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package types2
    
    // BasicKind describes the kind of basic type.
    type BasicKind int
    
    const (
    	Invalid BasicKind = iota // type is invalid
    
    	// predeclared types
    	Bool
    	Int
    	Int8
    	Int16
    	Int32
    	Int64
    	Uint
    	Uint8
    	Uint16
    	Uint32
    	Uint64
    	Uintptr
    	Float32
    	Float64
    	Complex64
    	Complex128
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 1.5K bytes
    - Viewed (0)
Back to top