github.com/balzaczyy/golucene@v0.0.0-20151210033525-d0be9ee89713/queryparser/classic/token.go (about) 1 package classic 2 3 type Token struct { 4 kind int 5 beginLine int 6 beginColumn int 7 endLine int 8 endColumn int 9 image string 10 next *Token 11 } 12 13 func newToken(ofKind int, image string) *Token { 14 return &Token{kind: ofKind, image: image} 15 } 16 17 func (t *Token) String() string { 18 return t.image 19 }