package main
import (
"fmt";
"os"
)
func main () {
bytes := make ([]byte, 20);
os.Stdin.Read (bytes);
fmt.Print (string (bytes))
}
-Ostsol
import (
"fmt";
"os";
"bufio";
)
func main () {
in := bufio.NewReader(os.Stdin);
//the string value of the input is stored in the variable input
input, err := in.ReadString('\n');
fmt.Println(input); //output the string
if err != nil {
// handle error
}
//in case you need to convert it to integer value. import strconv and
use strconv.Atoi(variable)
}
Hope it is useful