Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for peer (0.15 sec)

  1. src/bufio/bufio_test.go

    	}
    	if _, err := buf.Peek(1); err != io.EOF {
    		t.Fatalf("want EOF got %v", err)
    	}
    
    	// Test for issue 3022, not exposing a reader's error on a successful Peek.
    	buf = NewReaderSize(dataAndEOFReader("abcd"), 32)
    	if s, err := buf.Peek(2); string(s) != "ab" || err != nil {
    		t.Errorf(`Peek(2) on "abcd", EOF = %q, %v; want "ab", nil`, string(s), err)
    	}
    	if s, err := buf.Peek(4); string(s) != "abcd" || err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    <code>len(x)</code> is <a href="#Length_and_capacity">constant</a>,
    the range expression is not evaluated.
    </p>
    
    <p>
    Function calls on the left are evaluated once per iteration.
    For each iteration, iteration values are produced as follows
    if the respective iteration variables are present:
    </p>
    
    <pre class="grammar">
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  3. api/go1.14.txt

    pkg syscall (freebsd-arm64), const DLT_JUNIPER_MONITOR = 164
    pkg syscall (freebsd-arm64), const DLT_JUNIPER_MONITOR ideal-int
    pkg syscall (freebsd-arm64), const DLT_JUNIPER_PIC_PEER = 174
    pkg syscall (freebsd-arm64), const DLT_JUNIPER_PIC_PEER ideal-int
    pkg syscall (freebsd-arm64), const DLT_JUNIPER_PPP = 179
    pkg syscall (freebsd-arm64), const DLT_JUNIPER_PPP ideal-int
    pkg syscall (freebsd-arm64), const DLT_JUNIPER_PPPOE = 167
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 508.9K bytes
    - Viewed (0)
  4. api/go1.20.txt

    pkg syscall (freebsd-riscv64), const DLT_JUNIPER_MONITOR = 164 #53466
    pkg syscall (freebsd-riscv64), const DLT_JUNIPER_MONITOR ideal-int #53466
    pkg syscall (freebsd-riscv64), const DLT_JUNIPER_PIC_PEER = 174 #53466
    pkg syscall (freebsd-riscv64), const DLT_JUNIPER_PIC_PEER ideal-int #53466
    pkg syscall (freebsd-riscv64), const DLT_JUNIPER_PPP = 179 #53466
    pkg syscall (freebsd-riscv64), const DLT_JUNIPER_PPP ideal-int #53466
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 21:23:32 GMT 2023
    - 602.6K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/lex/tokenizer.go

    	switch t.tok {
    	case '\n':
    		t.line++
    	case '-':
    		if s.Peek() == '>' {
    			s.Next()
    			t.tok = ARR
    			return ARR
    		}
    	case '@':
    		if s.Peek() == '>' {
    			s.Next()
    			t.tok = ROT
    			return ROT
    		}
    	case '<':
    		if s.Peek() == '<' {
    			s.Next()
    			t.tok = LSH
    			return LSH
    		}
    	case '>':
    		if s.Peek() == '>' {
    			s.Next()
    			t.tok = RSH
    			return RSH
    		}
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 04 20:35:21 GMT 2022
    - 3K bytes
    - Viewed (0)
  6. src/archive/tar/strconv.go

    	// spaces or NULs.
    	// So we remove leading and trailing NULs and spaces to
    	// be sure.
    	b = bytes.Trim(b, " \x00")
    
    	if len(b) == 0 {
    		return 0
    	}
    	x, perr := strconv.ParseUint(p.parseString(b), 8, 64)
    	if perr != nil {
    		p.err = ErrHeader
    	}
    	return int64(x)
    }
    
    func (f *formatter) formatOctal(b []byte, x int64) {
    	if !fitsInOctal(len(b), x) {
    		x = 0 // Last resort, just write zero
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  7. src/bytes/example_test.go

    		fmt.Printf("Cut(%q, %q) = %q, %q, %v\n", s, sep, before, after, found)
    	}
    	show("Gopher", "Go")
    	show("Gopher", "ph")
    	show("Gopher", "er")
    	show("Gopher", "Badger")
    	// Output:
    	// Cut("Gopher", "Go") = "", "pher", true
    	// Cut("Gopher", "ph") = "Go", "er", true
    	// Cut("Gopher", "er") = "Goph", "", true
    	// Cut("Gopher", "Badger") = "Gopher", "", false
    }
    
    func ExampleCutPrefix() {
    	show := func(s, sep string) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  8. api/go1.16.txt

    pkg syscall (darwin-arm64), const MSG_NEEDSA ideal-int
    pkg syscall (darwin-arm64), const MSG_OOB = 1
    pkg syscall (darwin-arm64), const MSG_OOB ideal-int
    pkg syscall (darwin-arm64), const MSG_PEEK = 2
    pkg syscall (darwin-arm64), const MSG_PEEK ideal-int
    pkg syscall (darwin-arm64), const MSG_RCVMORE = 16384
    pkg syscall (darwin-arm64), const MSG_RCVMORE ideal-int
    pkg syscall (darwin-arm64), const MSG_SEND = 4096
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Dec 02 16:30:41 GMT 2022
    - 479.2K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/parse.go

    	doIssueError := true
    	isStatic, abi := p.symRefAttrs(name, doIssueError)
    
    	if p.peek() == '+' || p.peek() == '-' {
    		a.Offset = int64(p.expr())
    	}
    	if isStatic {
    		a.Sym = p.ctxt.LookupStatic(name)
    	} else {
    		a.Sym = p.ctxt.LookupABI(name, abi)
    	}
    	if p.peek() == scanner.EOF {
    		if prefix == 0 && p.isJump {
    			// Symbols without prefix or suffix are jump labels.
    			return
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/lex/input.go

    }
    
    func (in *Input) expectNewline(directive string) {
    	tok := in.Stack.Next()
    	if tok != '\n' {
    		in.expectText("expected newline after", directive)
    	}
    }
    
    func (in *Input) Next() ScanToken {
    	if in.peek {
    		in.peek = false
    		tok := in.peekToken
    		in.text = in.peekText
    		return tok
    	}
    	// If we cannot generate a token after 100 macro invocations, we're in trouble.
    	// The usual case is caught by Push, below, but be safe.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
Back to top