reading a file line by line golang code example Example: golang read line package main import "fmt" func main(){ x := string fmt.Scanln(&x) }