Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for splitFunc (2.06 sec)

  1. src/cmd/fix/typecheck.go

    // Using strings makes this a little harder, but it makes
    // a lot of the rest of the code easier. This will all go away
    // when we can use go/typechecker directly.
    
    // splitFunc splits "func(x,y,z) (a,b,c)" into ["x", "y", "z"] and ["a", "b", "c"].
    func splitFunc(s string) (in, out []string) {
    	if !strings.HasPrefix(s, "func(") {
    		return nil, nil
    	}
    
    	i := len("func(") // index of beginning of 'in' arguments
    	nparen := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 22:02:42 UTC 2022
    - 20.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder.go

    	return len(data), io.ErrShortBuffer
    }
    
    func (d *YAMLDecoder) Close() error {
    	return d.r.Close()
    }
    
    const yamlSeparator = "\n---"
    const separator = "---"
    
    // splitYAMLDocument is a bufio.SplitFunc for splitting YAML streams into individual documents.
    func splitYAMLDocument(data []byte, atEOF bool) (advance int, token []byte, err error) {
    	if atEOF && len(data) == 0 {
    		return 0, nil, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 19 21:24:36 UTC 2021
    - 10.2K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"ReadWriter.Writer", Field, 0},
    		{"Reader", Type, 0},
    		{"ScanBytes", Func, 1},
    		{"ScanLines", Func, 1},
    		{"ScanRunes", Func, 1},
    		{"ScanWords", Func, 1},
    		{"Scanner", Type, 1},
    		{"SplitFunc", Type, 1},
    		{"Writer", Type, 0},
    	},
    	"bytes": {
    		{"(*Buffer).Available", Method, 21},
    		{"(*Buffer).AvailableBuffer", Method, 21},
    		{"(*Buffer).Bytes", Method, 0},
    		{"(*Buffer).Cap", Method, 5},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  4. api/go1.1.txt

    pkg bufio, method (*Scanner) Scan() bool
    pkg bufio, method (*Scanner) Split(SplitFunc)
    pkg bufio, method (*Scanner) Text() string
    pkg bufio, method (*Writer) ReadFrom(io.Reader) (int64, error)
    pkg bufio, method (ReadWriter) ReadFrom(io.Reader) (int64, error)
    pkg bufio, method (ReadWriter) WriteTo(io.Writer) (int64, error)
    pkg bufio, type Scanner struct
    pkg bufio, type SplitFunc func([]uint8, bool) (int, []uint8, error)
    pkg bufio, var ErrAdvanceTooFar error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 2.6M bytes
    - Viewed (0)
Back to top