Clean up lint (#56)

The only real change in this commit is that MaxInt is made private.
Everything else should be gofmt'ing, docs and cleanup of lint.
This commit is contained in:
Cameron Moore
2016-04-18 09:58:23 -05:00
committed by Thomas Pelletier
parent 9d93af61de
commit 6e26017b00
7 changed files with 32 additions and 29 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ import (
"fmt"
)
const MaxInt = int(^uint(0) >> 1)
const maxInt = int(^uint(0) >> 1)
type queryParser struct {
flow chan token
@@ -203,7 +203,7 @@ loop: // labeled loop for easy breaking
func (p *queryParser) parseSliceExpr() queryParserStateFn {
// init slice to grab all elements
start, end, step := 0, MaxInt, 1
start, end, step := 0, maxInt, 1
// parse optional start
tok := p.getToken()