CSI-ES-2324/Projs/PD2/internal/gateway/interface.go

15 lines
193 B
Go
Raw Normal View History

package gateway
import (
"bufio"
"fmt"
"os"
)
func readStdin(message string) string {
fmt.Println(message)
scanner := bufio.NewScanner(os.Stdin)
scanner.Scan()
return scanner.Text()
}