Home | History | Annotate | Download | only in bufio

Lines Matching refs:split

40 	// Set the split function for the scanning operation.
41 scanner.Split(bufio.ScanWords)
54 // Use a Scanner with a custom split function (built by wrapping ScanWords) to validate
60 // Create a custom split function by wrapping the existing ScanWords function.
61 split := func(data []byte, atEOF bool) (advance int, token []byte, err error) {
68 // Set the split function for the scanning operation.
69 scanner.Split(split)
84 // Use a Scanner with a custom split function to parse a comma-separated
90 // Define a split function that separates on commas.
102 scanner.Split(onComma)