package scanner
import "github.com/hashicorp/hcl/json/scanner"
Index ¶
Types ¶
type Scanner ¶
type Scanner struct { // Error is called for each error encountered. If no Error // function is set, the error is reported to os.Stderr. Error func(pos token.Pos, msg string) // ErrorCount is incremented by one for each error encountered. ErrorCount int // contains filtered or unexported fields }
Scanner defines a lexical scanner
func New ¶
New creates and initializes a new instance of Scanner using src as its source content.
func (*Scanner) Scan ¶
Scan scans the next token and returns the token.
Source Files ¶
- Version
- v1.0.0 (latest)
- Published
- Aug 26, 2018
- Platform
- windows/amd64
- Imports
- 6 packages
- Last checked
- 3 hours ago –
Tools for package owners.