Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 481 for iota (0.04 sec)

  1. src/internal/trace/parser.go

    package trace
    
    // Frame is a frame in stack traces.
    type Frame struct {
    	PC   uint64
    	Fn   string
    	File string
    	Line int
    }
    
    const (
    	// Special P identifiers:
    	FakeP    = 1000000 + iota
    	TimerP   // depicts timer unblocks
    	NetpollP // depicts network unblocks
    	SyscallP // depicts returns from syscalls
    	GCP      // depicts GC state
    	ProfileP // depicts recording of CPU profile samples
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:31:04 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. src/go/printer/testdata/parser.go

    	pos := p.expect(keyword)
    	var lparen, rparen token.Pos
    	var list []ast.Spec
    	if p.tok == token.LPAREN {
    		lparen = p.pos
    		p.next()
    		for iota := 0; p.tok != token.RPAREN && p.tok != token.EOF; iota++ {
    			list = append(list, f(p, p.leadComment, iota))
    		}
    		rparen = p.expect(token.RPAREN)
    		p.expectSemi()
    	} else {
    		list = append(list, f(p, nil, 0))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  3. src/go/doc/example.go

    	// However, if there is a constant group with iota, leave it all: later
    	// constant declarations in the group may have no value and so cannot stand
    	// on their own, and removing any constant from the group could change the
    	// values of subsequent ones.
    	// See testdata/examples/iota.go for a minimal example.
    	var ds []ast.Decl
    	for _, d := range depDecls {
    		switch d := d.(type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/text/internal/language/match.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package language
    
    import "errors"
    
    type scriptRegionFlags uint8
    
    const (
    	isList = 1 << iota
    	scriptInFrom
    	regionInFrom
    )
    
    func (t *Tag) setUndefinedLang(id Language) {
    	if t.LangID == 0 {
    		t.LangID = id
    	}
    }
    
    func (t *Tag) setUndefinedScript(id Script) {
    	if t.ScriptID == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. src/go/types/typexpr.go

    		return
    
    	case *Const:
    		check.addDeclDep(obj)
    		if !isValid(typ) {
    			return
    		}
    		if obj == universeIota {
    			if check.iota == nil {
    				check.error(e, InvalidIota, "cannot use iota outside constant declaration")
    				return
    			}
    			x.val = check.iota
    		} else {
    			x.val = obj.val
    		}
    		assert(x.val != nil)
    		x.mode = constant_
    
    	case *TypeName:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  6. src/go/types/stmt.go

    	defer func(env environment, indent int) {
    		check.environment = env
    		check.indent = indent
    	}(check.environment, check.indent)
    	check.environment = environment{
    		decl:  decl,
    		scope: sig.scope,
    		iota:  iota,
    		sig:   sig,
    	}
    	check.indent = 0
    
    	check.stmtList(0, body.List)
    
    	if check.hasLabel {
    		check.labels(body)
    	}
    
    	if sig.results.Len() > 0 && !check.isTerminating(body, "") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  7. src/net/http/fcgi/fcgi.go

    const flagKeepConn = 1
    
    const (
    	maxWrite = 65535 // maximum record body
    	maxPad   = 255
    )
    
    const (
    	roleResponder = iota + 1 // only Responders are implemented.
    	roleAuthorizer
    	roleFilter
    )
    
    const (
    	statusRequestComplete = iota
    	statusCantMultiplex
    	statusOverloaded
    	statusUnknownRole
    )
    
    type header struct {
    	Version       uint8
    	Type          recType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 11 18:51:39 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  8. src/html/template/content.go

    	// the encapsulated content should come from a trusted source,
    	// as it will be included verbatim in the template output.
    	Srcset string
    )
    
    type contentType uint8
    
    const (
    	contentTypePlain contentType = iota
    	contentTypeCSS
    	contentTypeHTML
    	contentTypeHTMLAttr
    	contentTypeJS
    	contentTypeJSStr
    	contentTypeURL
    	contentTypeSrcset
    	// contentTypeUnsafe is used in attr.go for values that affect how
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:30:25 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  9. test/typeparam/graph.go

    					workqueue = append(workqueue, nodePath[_Node, _Edge]{a, ve})
    					visited[a] = true
    				}
    			}
    		}
    	}
    	return nil, errors.New("no path")
    }
    
    type direction int
    
    const (
    	north direction = iota
    	ne
    	east
    	se
    	south
    	sw
    	west
    	nw
    	up
    	down
    )
    
    func (dir direction) String() string {
    	strs := map[direction]string{
    		north: "north",
    		ne:    "ne",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/text/unicode/norm/composition.go

    // ssState is used for reporting the segment state after inserting a rune.
    // It is returned by streamSafe.next.
    type ssState int
    
    const (
    	// Indicates a rune was successfully added to the segment.
    	ssSuccess ssState = iota
    	// Indicates a rune starts a new segment and should not be added.
    	ssStarter
    	// Indicates a rune caused a segment overflow and a CGJ should be inserted.
    	ssOverflow
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top