go4kids/utilities.go

16 lines
252 B
Go

package go4kids
import (
"fmt"
"path/filepath"
)
// Input is a function that prompts the user for input and returns the input as a string.
func Input(prompt string) string {
var input string
fmt.Print(prompt)
fmt.Scanln(&input)
return input
}