Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 103 for iota (0.26 sec)

  1. src/go/types/named.go

    	ctxt            *Context  // local Context; set to nil after full expansion
    }
    
    // namedState represents the possible states that a named type may assume.
    type namedState uint32
    
    const (
    	unresolved namedState = iota // tparams, underlying type and methods might be unavailable
    	resolved                     // resolve has run; methods might be incomplete (for instances)
    	complete                     // all data is known
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  2. src/go/types/resolver.go

    				}
    			case constDecl:
    				// declare all constants
    				for i, name := range d.spec.Names {
    					obj := NewConst(name.Pos(), pkg, name.Name, nil, constant.MakeInt64(int64(d.iota)))
    
    					var init ast.Expr
    					if i < len(d.init) {
    						init = d.init[i]
    					}
    
    					d := &declInfo{file: fileScope, vtyp: d.typ, init: init, inherited: d.inherited}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  3. src/runtime/race.go

    	pc   uintptr
    	fn   *byte
    	file *byte
    	line uintptr
    	off  uintptr
    	res  uintptr
    }
    
    var qq = [...]byte{'?', '?', 0}
    var dash = [...]byte{'-', 0}
    
    const (
    	raceGetProcCmd = iota
    	raceSymbolizeCodeCmd
    	raceSymbolizeDataCmd
    )
    
    // Callback from C into Go, runs on g0.
    func racecallback(cmd uintptr, ctx unsafe.Pointer) {
    	switch cmd {
    	case raceGetProcCmd:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  4. src/encoding/gob/type.go

    	decIndir    int8         // number of indirections to reach the receiver type; may be negative
    }
    
    // externalEncoding bits
    const (
    	xGob    = 1 + iota // GobEncoder or GobDecoder
    	xBinary            // encoding.BinaryMarshaler or encoding.BinaryUnmarshaler
    	xText              // encoding.TextMarshaler or encoding.TextUnmarshaler
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  5. src/go/doc/reader.go

    	"make":    true,
    	"new":     true,
    	"panic":   true,
    	"print":   true,
    	"println": true,
    	"real":    true,
    	"recover": true,
    }
    
    var predeclaredConstants = map[string]bool{
    	"false": true,
    	"iota":  true,
    	"nil":   true,
    	"true":  true,
    }
    
    // assumedPackageName returns the assumed package name
    // for a given import path. This is a copy of
    // golang.org/x/tools/internal/imports.ImportPathToAssumedName.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  6. src/internal/trace/gc.go

    type UtilFlags int
    
    const (
    	// UtilSTW means utilization should account for STW events.
    	// This includes non-GC STW events, which are typically user-requested.
    	UtilSTW UtilFlags = 1 << iota
    	// UtilBackground means utilization should account for
    	// background mark workers.
    	UtilBackground
    	// UtilAssist means utilization should account for mark
    	// assists.
    	UtilAssist
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 26K bytes
    - Viewed (0)
  7. src/net/textproto/reader.go

    func (d *dotReader) Read(b []byte) (n int, err error) {
    	// Run data through a simple state machine to
    	// elide leading dots, rewrite trailing \r\n into \n,
    	// and detect ending .\r\n line.
    	const (
    		stateBeginLine = iota // beginning of line; initial state; must be zero
    		stateDot              // read . at beginning of line
    		stateDotCR            // read .\r at beginning of line
    		stateCR               // read \r (possibly at end of line)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/mod/module/module.go

    	}
    	return nil
    }
    
    // pathKind indicates what kind of path we're checking. Module paths,
    // import paths, and file paths have different restrictions.
    type pathKind int
    
    const (
    	modulePath pathKind = iota
    	importPath
    	filePath
    )
    
    // checkPath checks that a general path is valid. kind indicates what
    // specific constraints should be applied.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 20:17:07 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  9. src/go/types/unify.go

    type unifyMode uint
    
    const (
    	// If assign is set, we are unifying types involved in an assignment:
    	// they may match inexactly at the top, but element types must match
    	// exactly.
    	assign unifyMode = 1 << iota
    
    	// If exact is set, types unify if they are identical (or can be
    	// made identical with suitable arguments for type parameters).
    	// Otherwise, a named type and a type literal unify if their
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  10. src/net/http/fs.go

    }
    
    // condResult is the result of an HTTP request precondition check.
    // See https://tools.ietf.org/html/rfc7232 section 3.
    type condResult int
    
    const (
    	condNone condResult = iota
    	condTrue
    	condFalse
    )
    
    func checkIfMatch(w ResponseWriter, r *Request) condResult {
    	im := r.Header.Get("If-Match")
    	if im == "" {
    		return condNone
    	}
    	for {
    		im = textproto.TrimString(im)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 17:06:47 UTC 2024
    - 31.1K bytes
    - Viewed (0)
Back to top