Skip to content

Instantly share code, notes, and snippets.

@amireshoon
Created August 14, 2020 11:46
Show Gist options
  • Save amireshoon/677aa54d8d32fa50ba5c44ccb465d6c8 to your computer and use it in GitHub Desktop.
Save amireshoon/677aa54d8d32fa50ba5c44ccb465d6c8 to your computer and use it in GitHub Desktop.
Reading input
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