Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 483 for iota (0.04 sec)

  1. src/go/printer/testdata/comments.input

    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)
  2. src/crypto/x509/internal/macos/security.go

    type SecTrustSettingsResult int32
    
    const (
    	SecTrustSettingsResultInvalid SecTrustSettingsResult = iota
    	SecTrustSettingsResultTrustRoot
    	SecTrustSettingsResultTrustAsRoot
    	SecTrustSettingsResultDeny
    	SecTrustSettingsResultUnspecified
    )
    
    type SecTrustResultType int32
    
    const (
    	SecTrustResultInvalid SecTrustResultType = iota
    	SecTrustResultProceed
    	SecTrustResultConfirm // deprecated
    	SecTrustResultDeny
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 21 20:05:17 UTC 2022
    - 9.1K bytes
    - Viewed (0)
  3. src/text/template/option.go

    package template
    
    import "strings"
    
    // missingKeyAction defines how to respond to indexing a map with a key that is not present.
    type missingKeyAction int
    
    const (
    	mapInvalid   missingKeyAction = iota // Return an invalid reflect.Value.
    	mapZeroValue                         // Return the zero value for the map element.
    	mapError                             // Error out
    )
    
    type option struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  4. src/cmd/go/internal/lockedfile/internal/filelock/filelock_other.go

    // license that can be found in the LICENSE file.
    
    //go:build !unix && !windows
    
    package filelock
    
    import (
    	"errors"
    	"io/fs"
    )
    
    type lockType int8
    
    const (
    	readLock = iota + 1
    	writeLock
    )
    
    func lock(f File, lt lockType) error {
    	return &fs.PathError{
    		Op:   lt.String(),
    		Path: f.Name(),
    		Err:  errors.ErrUnsupported,
    	}
    }
    
    func unlock(f File) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 563 bytes
    - Viewed (0)
  5. src/go/doc/testdata/b.go

    // Exported declarations associated with non-exported types must always be shown.
    
    type notExported int
    
    const C notExported = 0
    
    const (
    	C1 notExported = iota
    	C2
    	c3
    	C4
    	C5
    )
    
    var V notExported
    var V1, V2, v3, V4, V5 notExported
    
    var (
    	U1, U2, u3, U4, U5 notExported
    	u6                 notExported
    	U7                 notExported = 7
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 11 16:05:02 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/stdlib/stdlib.go

    	Kind    Kind
    	Version Version // Go version that first included the symbol
    }
    
    // A Kind indicates the kind of a symbol:
    // function, variable, constant, type, and so on.
    type Kind int8
    
    const (
    	Invalid Kind = iota // Example name:
    	Type                // "Buffer"
    	Func                // "Println"
    	Var                 // "EOF"
    	Const               // "Pi"
    	Field               // "Point.X"
    	Method              // "(*Buffer).Grow"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/net/route/message.go

    	// information.
    	SysType() SysType
    }
    
    // A SysType represents a type of operating system-specific
    // information.
    type SysType int
    
    const (
    	SysMetrics SysType = iota
    	SysStats
    )
    
    // ParseRIB parses b as a routing information base and returns a list
    // of routing messages.
    func ParseRIB(typ RIBType, b []byte) ([]Message, error) {
    	if !typ.parseable() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. src/internal/pkgbits/sync.go

    // written to export data to ensure the reader and writer stay
    // synchronized.
    type SyncMarker int
    
    //go:generate stringer -type=SyncMarker -trimprefix=Sync
    
    const (
    	_ SyncMarker = iota
    
    	// Public markers (known to go/types importers).
    
    	// Low-level coding markers.
    	SyncEOF
    	SyncBool
    	SyncInt64
    	SyncUint64
    	SyncString
    	SyncValue
    	SyncVal
    	SyncRelocs
    	SyncReloc
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 04 17:12:28 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/config.go

    //
    // Possible build modes are the same as those for the -buildmode flag
    // in cmd/go, and are documented in 'go help buildmode'.
    type BuildMode uint8
    
    const (
    	BuildModeUnset BuildMode = iota
    	BuildModeExe
    	BuildModePIE
    	BuildModeCArchive
    	BuildModeCShared
    	BuildModeShared
    	BuildModePlugin
    )
    
    // Set implements flag.Value to set the build mode based on the argument
    // to the -buildmode flag.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:14:11 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/link.go

    	//	for TYPE_FCONST, a float64
    	//	for TYPE_BRANCH, a *Prog (optional)
    	//	for TYPE_TEXTSIZE, an int32 (optional)
    	Val interface{}
    }
    
    type AddrName int8
    
    const (
    	NAME_NONE AddrName = iota
    	NAME_EXTERN
    	NAME_STATIC
    	NAME_AUTO
    	NAME_PARAM
    	// A reference to name@GOT(SB) is a reference to the entry in the global offset
    	// table for 'name'.
    	NAME_GOTREF
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
Back to top