Source File
token.go
Belonging Package
github.com/kevinburke/ssh_config
package ssh_config
import
type token struct {
Position
typ tokenType
val string
}
func ( token) () string {
switch .typ {
case tokenEOF:
return "EOF"
}
return fmt.Sprintf("%q", .val)
}
type tokenType int
const (
eof = -(iota + 1)
)
const (
tokenError tokenType = iota
tokenEOF
tokenEmptyLine
tokenComment
tokenKey
tokenEquals
tokenString
)
func ( rune) bool {
return == ' ' || == '\t'
}
func ( rune) bool {
return !(isSpace() || == '\r' || == '\n' || == eof)
}
return !( == '\r' || == '\n' || == eof || == '=')
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |