cleanup
This commit is contained in:
parent
f736f44e4e
commit
e3c191acec
4
misc.go
4
misc.go
@ -137,8 +137,8 @@ func splitWord(s string) (word, rest string) {
|
|||||||
|
|
||||||
// This function reads whitespace separated string pairs at each line. Single
|
// This function reads whitespace separated string pairs at each line. Single
|
||||||
// or double quotes can be used to escape whitespaces. Hash characters can be
|
// or double quotes can be used to escape whitespaces. Hash characters can be
|
||||||
// used to add a comment until the end of line. Indentation and trailing space
|
// used to add a comment until the end of line. Leading and trailing space is
|
||||||
// is trimmed. Empty lines are skipped.
|
// trimmed. Empty lines are skipped.
|
||||||
func readPairs(r io.Reader) ([][]string, error) {
|
func readPairs(r io.Reader) ([][]string, error) {
|
||||||
var pairs [][]string
|
var pairs [][]string
|
||||||
s := bufio.NewScanner(r)
|
s := bufio.NewScanner(r)
|
||||||
|
Loading…
Reference in New Issue
Block a user