Created
August 14, 2020 11:46
-
-
Save amireshoon/677aa54d8d32fa50ba5c44ccb465d6c8 to your computer and use it in GitHub Desktop.
Reading input
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" | |
func main() { | |
reader := bufio.NewReader(os.Stdin) | |
a, err := reader.ReadString('\n') | |
if err != nil { | |
panic("input error") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment