Answers for "golang fmt.scanln whole line"

0

golang fmt.scanln whole line

scanner := bufio.NewScanner(os.Stdin)
if scanner.Scan() {
    line := scanner.Text()
    fmt.Printf("Input was: %q\n", line)
}
Posted by: Guest on July-30-2020

Browse Popular Code Answers by Language