Skip to content

Instantly share code, notes, and snippets.

@mk0x9
Created December 25, 2010 19:40
Show Gist options
  • Save mk0x9/755018 to your computer and use it in GitHub Desktop.
Save mk0x9/755018 to your computer and use it in GitHub Desktop.
package main
import "fmt"
func main() {
var x byte
for {
fmt.Scan("%c", &x)
fmt.Printf("\nGot: '%c'\n", x)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment