Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Didn (0.12 sec)

  1. src/bufio/scan_test.go

    	numSplits := 0
    	const okCount = 7
    	errorSplit := func(data []byte, atEOF bool) (advance int, token []byte, err error) {
    		if atEOF {
    			panic("didn't get enough data")
    		}
    		if numSplits >= okCount {
    			return 0, nil, testError
    		}
    		numSplits++
    		return 1, data[0:1], nil
    	}
    	// Read the data.
    	const text = "abcdefghijklmnopqrstuvwxyz"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
Back to top