get user input in GO

package main

import (
    "bufio"
    "fmt"
    "os"
)

func main() {
    // Prompting user for input
    fmt.Print("Enter something: ")

    // Allowing user to input text
    reader := bufio.NewReader(os.Stdin)
    userInput, _ := reader.ReadString('\n')

    // Displaying the user input
    fmt.Println("You entered:", userInput)
}