update: map log parser exercise explanation
This commit is contained in:
@ -27,10 +27,12 @@ package main
|
|||||||
// ---------------------------------------------------------
|
// ---------------------------------------------------------
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// Scanner can scan the lines, words, anything.
|
// I'll talk about this in the function values section later on.
|
||||||
// Use the following code after creating the scanner to
|
|
||||||
// scan for the words instead.
|
|
||||||
//
|
//
|
||||||
|
// Simply put:
|
||||||
|
// Scanner can scan the lines, words, anything.
|
||||||
|
// Use the following code after creating the scanner
|
||||||
|
// to scan for the words instead.
|
||||||
// Below, I assumed that you put your scanner into the "in" variable.
|
// Below, I assumed that you put your scanner into the "in" variable.
|
||||||
|
|
||||||
// in.Split(bufio.ScanWords)
|
// in.Split(bufio.ScanWords)
|
||||||
|
Reference in New Issue
Block a user