This commit is contained in:
Gokcehan 2022-02-14 00:29:15 +03:00
parent f736f44e4e
commit e3c191acec

View File

@ -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)