Skip to content

Commit 577a2ac

Browse files
committed
Go Lang
1 parent 20311c9 commit 577a2ac

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Go Lang/hello_world.go

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package main
2+
3+
import (
4+
"bufio"
5+
"fmt"
6+
"os"
7+
)
8+
9+
func main() {
10+
reader := bufio.NewReader(os.Stdin)
11+
fmt.Print("Enter text: ")
12+
text, _ := reader.ReadString('\n')
13+
fmt.Println(text)
14+
}

0 commit comments

Comments
 (0)