I’m just starting to look at go (writing code for 40 years). I’m stepping through “Head First Go”.
Here’s my version info: go version go1.12.7 windows/amd64 .
My simple current test case is this:
package main
import (
"bufio"
"fmt"
"os"
)
func main() {
fmt.Print("Enter a grade: ")
reader := bufio.NewReader(os.Stdin)
input := reader.ReadString('\n')
fmt.Println(input)
}
When I run “go run” on this, I get:
# bytes
c:\go\src\bytes\bytes_decl.go:10:6: IndexByte redeclared in this block
previous declaration at c:\go\src\bytes\bytes.go:101:34
c:\go\src\bytes\bytes_decl.go:17:6: Equal redeclared in this block
previous declaration at c:\go\src\bytes\bytes.go:18:25
c:\go\src\bytes\bytes_decl.go:24:6: Compare redeclared in this block
previous declaration at c:\go\src\bytes\bytes.go:37:27