Sign in
go
/
talks
/
693306794df53f39f853c9c15494bbc7c17dde7d
/
.
/
2014
/
taste
/
idents.go
blob: bf5404623b68515cee6264ad4de054796da33940 [
file
] [
log
] [
blame
]
// +build OMIT
package main
// idents.go
import (
"fmt"
"os"
"text/scanner"
)
func main() {
var s scanner.Scanner
s.Init(os.Stdin)
for {
switch s.Scan() {
case scanner.EOF:
return
// all done
case scanner.Ident:
fmt.Println(s.TokenText())
}
}
}