CSI-ES-2324/Projs/PD2/internal/gateway/interface.go
afonso 69559f41ca
[PD2] Gateway login, logout and auth middleware done.
Co-authored-by: tsousa111 <tiagao2001@hotmail.com>
2024-05-30 00:55:59 +01:00

14 lines
193 B
Go

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