Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 228 for iota (0.11 sec)

  1. 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)
  2. 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)
  3. src/cmd/go/internal/work/action.go

    		return ""
    	}
    	return string(js)
    }
    
    // BuildMode specifies the build mode:
    // are we just building things or also installing the results?
    type BuildMode int
    
    const (
    	ModeBuild BuildMode = iota
    	ModeInstall
    	ModeBuggyInstall
    
    	ModeVetOnly = 1 << 8
    )
    
    // NewBuilder returns a new Builder ready for use.
    //
    // If workDir is the empty string, NewBuilder creates a WorkDir if needed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:39:17 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  4. src/go/ast/ast.go

    		Value Expr
    	}
    )
    
    // The direction of a channel type is indicated by a bit
    // mask including one or both of the following constants.
    type ChanDir int
    
    const (
    	SEND ChanDir = 1 << iota
    	RECV
    )
    
    // A type is represented by a tree consisting of one
    // or more of the following type-specific expression
    // nodes.
    type (
    	// An ArrayType node represents an array or slice type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/compile/internal/typecheck/typecheck.go

    		}
    
    		types.SkipSizeForTracing = true
    		defer func() { types.SkipSizeForTracing = false }()
    		fmt.Printf("%s: %s=> %p %s %v tc=%d type=%L\n", pos, indent, n, op, n, tc, typ)
    	}
    }
    
    const (
    	ctxStmt    = 1 << iota // evaluated at statement level
    	ctxExpr                // evaluated in value context
    	ctxType                // evaluated in type context
    	ctxCallee              // call-only expressions are ok
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  7. src/go/constant/value.go

    	"strings"
    	"sync"
    	"unicode/utf8"
    )
    
    //go:generate stringer -type Kind
    
    // Kind specifies the kind of value represented by a [Value].
    type Kind int
    
    const (
    	// unknown values
    	Unknown Kind = iota
    
    	// non-numeric values
    	Bool
    	String
    
    	// numeric values
    	Int
    	Float
    	Complex
    )
    
    // A Value represents the value of a Go constant.
    type Value interface {
    	// Kind returns the value kind.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
  8. src/image/png/reader.go

    const (
    	ctGrayscale      = 0
    	ctTrueColor      = 2
    	ctPaletted       = 3
    	ctGrayscaleAlpha = 4
    	ctTrueColorAlpha = 6
    )
    
    // A cb is a combination of color type and bit depth.
    const (
    	cbInvalid = iota
    	cbG1
    	cbG2
    	cbG4
    	cbG8
    	cbGA8
    	cbTC8
    	cbP1
    	cbP2
    	cbP4
    	cbP8
    	cbTCA8
    	cbG16
    	cbGA16
    	cbTC16
    	cbTCA16
    )
    
    func cbPaletted(cb int) bool {
    	return cbP1 <= cb && cb <= cbP8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 26K bytes
    - Viewed (0)
  9. src/go/ast/filter.go

    // The MergeMode flags control the behavior of [MergePackageFiles].
    type MergeMode uint
    
    const (
    	// If set, duplicate function declarations are excluded.
    	FilterFuncDuplicates MergeMode = 1 << iota
    	// If set, comments that are not associated with a specific
    	// AST node (as Doc or Comment) are excluded.
    	FilterUnassociatedComments
    	// If set, duplicate import declarations are excluded.
    	FilterImportDuplicates
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. src/net/http/cookie.go

    // some protection against cross-site request forgery attacks.
    //
    // See https://tools.ietf.org/html/draft-ietf-httpbis-cookie-same-site-00 for details.
    type SameSite int
    
    const (
    	SameSiteDefaultMode SameSite = iota + 1
    	SameSiteLaxMode
    	SameSiteStrictMode
    	SameSiteNoneMode
    )
    
    var (
    	errBlankCookie           = errors.New("http: blank cookie")
    	errEqualNotFoundInCookie = errors.New("http: '=' not found in cookie")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:33:05 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top