diff --git a/code/golang/read_input.go b/code/golang/read_input.go new file mode 100644 index 0000000..f026659 --- /dev/null +++ b/code/golang/read_input.go @@ -0,0 +1,12 @@ +package main + +import ( + "fmt" +) + +func main() { + fmt.Println("Hi! Please enter your name...") + var inpt string + fmt.Scan(&inpt) + fmt.Printf("Hello %s, welcome on Hacktoberfest!\n", inpt) +}