Created
July 18, 2023 20:10
-
-
Save hovsater/f787249ed02f0b92f9e2a7ddfd7284aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
) | |
func main() { | |
s := bufio.NewScanner(os.Stdin) | |
s.Split(bufio.ScanBytes) | |
r := s.Scan() | |
fmt.Printf("scan result is %#v", r) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment