Skip to content

Commit

Permalink
[refactor] gofmt on lex.go to fix import block.
Browse files Browse the repository at this point in the history
  • Loading branch information
elithrar committed Feb 26, 2016
1 parent c7070b7 commit 08065b2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lex.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// https://github.com/golang/go/blob/39ad0fd0789872f9469167be7fe9578625ff246e/src/net/http/lex.go

package sessions
import "strings"

import "strings"

var isTokenTable = [127]bool{
'!': true,
Expand Down Expand Up @@ -85,18 +85,15 @@ var isTokenTable = [127]bool{
'~': true,
}


func isToken(r rune) bool {
i := int(r)
return i < len(isTokenTable) && isTokenTable[i]
}


func isNotToken(r rune) bool {
return !isToken(r)
}


func isCookieNameValid(raw string) bool {
if raw == "" {
return false
Expand Down

0 comments on commit 08065b2

Please sign in to comment.