How to Take Input from the User in Golang with Spaces..
#How can I read from standard input in the console?
reader := bufio.NewReader(os.Stdin)
fmt.Print(“Enter text: “)
text, _ := reader.ReadString(‘n’)
fmt.Println(text)
How to Take Input from the User in Golang with Spaces..
#How can I read from standard input in the console?
reader := bufio.NewReader(os.Stdin)
fmt.Print(“Enter text: “)
text, _ := reader.ReadString(‘n’)
fmt.Println(text)