golang input reader
package main
import (
"bufio"
"fmt"
"os"
)
func main() {
// Create a new scanner to read input from standard input (os.Stdin)
scanner := bufio.NewScanner(os.Stdin)
// Print a prompt to the console
fmt.Print("Enter some text: ")
// Use the scanner to read a line of text from the standard input
// The entered text will be stored in the 'text' variable
scanner.Scan()
text := scanner.Text()
// Print the entered text to the console
fmt.Println("You entered:", text)
}