Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for could (0.12 sec)

  1. src/bufio/scan.go

    // the token is the last token.
    //
    // The value is useful to stop processing early or when it is necessary to
    // deliver a final empty token (which is different from a nil token).
    // One could achieve the same behavior with a custom error value but
    // providing one here is tidier.
    // See the emptyFinalToken example for a use of this value.
    var ErrFinalToken = errors.New("final token")
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  2. src/archive/zip/reader.go

    		if f.ModifiedTime != 0 || f.ModifiedDate != 0 {
    			f.Modified = modified.In(timeZone(msdosModified.Sub(modified)))
    		}
    	}
    
    	// Assume that uncompressed size 2³²-1 could plausibly happen in
    	// an old zip32 file that was sharding inputs into the largest chunks
    	// possible (or is just malicious; search the web for 42.zip).
    	// If needUSize is true still, it means we didn't see a zip64 extension.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/arch/arch.go

    	register := make(map[string]int16)
    
    	// Standard register names.
    	for i := riscv.REG_X0; i <= riscv.REG_X31; i++ {
    		// Disallow X3 in shared mode, as this will likely be used as the
    		// GP register, which could result in problems in non-Go code,
    		// including signal handlers.
    		if shared && i == riscv.REG_GP {
    			continue
    		}
    		if i == riscv.REG_TP || i == riscv.REG_G {
    			continue
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Mar 21 06:51:28 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/swig/swig_test.go

    	cxx, err := exec.Command("go", "env", "CXX").CombinedOutput()
    	if err != nil {
    		t.Fatalf("go env CXX failed: %s", err)
    	}
    	args, err := quoted.Split(string(cxx))
    	if err != nil {
    		t.Skipf("could not parse 'go env CXX' output %q: %s", string(cxx), err)
    	}
    	if len(args) == 0 {
    		t.Skip("no C++ compiler")
    	}
    	testenv.MustHaveExecPath(t, string(args[0]))
    }
    
    var (
    	swigOnce sync.Once
    	haveSwig bool
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  5. src/bytes/bytes.go

    func Map(mapping func(r rune) rune, s []byte) []byte {
    	// In the worst case, the slice can grow when mapped, making
    	// things unpleasant. But it's so rare we barge in assuming it's
    	// fine. It could also shrink but that falls out naturally.
    	b := make([]byte, 0, len(s))
    	for i := 0; i < len(s); {
    		wid := 1
    		r := rune(s[i])
    		if r >= utf8.RuneSelf {
    			r, wid = utf8.DecodeRune(s[i:])
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/parse.go

    		return
    	}
    
    	// Constant.
    	haveConstant := false
    	switch tok.ScanToken {
    	case scanner.Int, scanner.Float, scanner.String, scanner.Char, '+', '-', '~':
    		haveConstant = true
    	case '(':
    		// Could be parenthesized expression or (R). Must be something, though.
    		tok := p.next()
    		if tok.ScanToken == scanner.EOF {
    			p.errorf("missing right parenthesis")
    			return
    		}
    		rname := tok.String()
    		p.back()
    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)
  7. src/cmd/cgo/godefs.go

    // AST expression onto a single line. The lexer normally inserts a
    // semicolon at each newline, so we can replace newline with semicolon.
    // However, we can't do that in cases where the lexer would not insert
    // a semicolon. We only have to worry about cases that can occur in an
    // expression passed through gofmt, which means composite literals and
    // (due to the printer possibly inserting newlines because of position
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 08 14:33:35 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  8. src/archive/tar/common.go

    package tar
    
    import (
    	"errors"
    	"fmt"
    	"internal/godebug"
    	"io/fs"
    	"math"
    	"path"
    	"reflect"
    	"strconv"
    	"strings"
    	"time"
    )
    
    // BUG: Use of the Uid and Gid fields in Header could overflow on 32-bit
    // architectures. If a large value is encountered when decoding, the result
    // stored in Header will be the truncated version.
    
    var tarinsecurepath = godebug.New("tarinsecurepath")
    
    var (
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  9. src/bytes/buffer.go

    	// we allocate buffers rounded up to the closest size class.
    	c := len(b) + n // ensure enough space for n elements
    	if c < 2*cap(b) {
    		// The growth rate has historically always been 2x. In the future,
    		// we could rely purely on append to determine the growth rate.
    		c = 2 * cap(b)
    	}
    	b2 := append([]byte(nil), make([]byte, c)...)
    	copy(b2, b)
    	return b2[:len(b)]
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  10. src/builtin/builtin.go

    // call of panic. If recover is called outside the deferred function it will
    // not stop a panicking sequence. In this case, or when the goroutine is not
    // panicking, recover returns nil.
    //
    // Prior to Go 1.21, recover would also return nil if panic is called with
    // a nil argument. See [panic] for details.
    func recover() any
    
    // The print built-in function formats its arguments in an
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
Back to top