Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ScanState (0.14 sec)

  1. src/cmd/vet/testdata/method/method.go

    // This file contains the code to check canonical methods.
    
    package method
    
    import "fmt"
    
    type MethodTest int
    
    func (t *MethodTest) Scan(x fmt.ScanState, c byte) { // ERROR "should have signature Scan\(fmt\.ScanState, rune\) error"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 20 15:46:42 UTC 2019
    - 394 bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdmethods/stdmethods.go

    // To do that, the arguments that have a = prefix are treated as
    // signals that the canonical meaning is intended: if a Scan
    // method doesn't have a fmt.ScanState as its first argument,
    // we let it go. But if it does have a fmt.ScanState, then the
    // rest has to match.
    var canonicalMethods = map[string]struct{ args, results []string }{
    	"As": {[]string{"any"}, []string{"bool"}}, // errors.As
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  3. src/math/big/intconv.go

    	case '-':
    		neg = true
    	case '+':
    		// nothing to do
    	default:
    		r.UnreadByte()
    	}
    	return
    }
    
    // byteReader is a local wrapper around fmt.ScanState;
    // it implements the ByteReader interface.
    type byteReader struct {
    	fmt.ScanState
    }
    
    func (r byteReader) ReadByte() (byte, error) {
    	ch, size, err := r.ReadRune()
    	if size != 1 && err == nil {
    		err = fmt.Errorf("invalid rune %#U", ch)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  4. src/math/big/floatconv.go

    // [fmt.Scan] for floating point values, which are:
    // 'b' (binary), 'e', 'E', 'f', 'F', 'g' and 'G'.
    // Scan doesn't handle ±Inf.
    func (z *Float) Scan(s fmt.ScanState, ch rune) error {
    	s.SkipSpace()
    	_, _, err := z.scan(byteReader{s}, 0)
    	return err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 8.3K bytes
    - Viewed (0)
Back to top