✔ Go lang ⚡ Reading user input from keyboard or stdin 🔥 Tecq Mate Tutorials
package main
import "bufio"
import "os"
func main(){
rd := bufio.NewReader(os.Stdin)
print("type & enter: ")
ln, er := rd.ReadString('\n')
if nil != er {
panic(er)
}
print("you entered: ", ln)
}
Comments
Post a Comment