Package-Level Type Names (total 3, all are exported)
/* sort exporteds by: | */
Pos describes an arbitrary source position
including the file, line, and column location.
A Position is valid if the line number is > 0.
// column number, starting at 1 (character count)
// filename, if any
// line number, starting at 1
// offset, starting at 0
After reports whether the position p is after u.
Before reports whether the position p is before u.
IsValid returns true if the position is valid.
String returns a string in one of several forms:
file:line:column valid position with file name
line:column valid position without file name
file invalid position with file name
- invalid position without file name
T : fmt.Stringer
T : context.stringer
T : os/signal.stringer
T : runtime.stringer
func github.com/hashicorp/hcl/json/scanner.(*Scanner).recentPosition() (pos Pos)
func Pos.After(u Pos) bool
func Pos.Before(u Pos) bool
Token defines a single HCL token which can be obtained via the Scanner
PosPosTextstringTypeType
HCLToken converts this token to an HCL token.
The token type must be a literal type or this will panic.
String returns the token's literal text. Note that this is only
applicable for certain token types, such as token.IDENT,
token.STRING, etc..
T : fmt.Stringer
T : context.stringer
T : os/signal.stringer
T : runtime.stringer
func github.com/hashicorp/hcl/json/scanner.(*Scanner).Scan() Token
func github.com/hashicorp/hcl/json/parser.(*Parser).scan() Token
Type is the set of lexical tokens of the HCL (HashiCorp Configuration Language)
IsIdentifier returns true for tokens corresponding to identifiers and basic
type literals; it returns false otherwise.
IsLiteral returns true for tokens corresponding to basic type literals; it
returns false otherwise.
IsOperator returns true for tokens corresponding to operators and
delimiters; it returns false otherwise.
String returns the string corresponding to the token tok.
T : fmt.Stringer
T : context.stringer
T : os/signal.stringer
T : runtime.stringer
func github.com/hashicorp/hcl/json/scanner.(*Scanner).scanNumber(ch rune) Type
const BOOL
const COLON
const COMMA
const EOF
const FLOAT
const ILLEGAL
const LBRACE
const LBRACK
const NULL
const NUMBER
const PERIOD
const RBRACE
const RBRACK
const STRING
const identifier_beg
const identifier_end
const literal_beg
const literal_end
const operator_beg
const operator_end
Package-Level Variables (only one, which is unexported)
The pages are generated with Goldsv0.3.2. (GOOS=linux 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.