Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEOF is returned when the end of the input is reached after // all input has been read. Callers can check for this error to // determine if an error is due to malformed input or exhausted // input. ErrEOF = errors.New("EOF") )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*options)
Option represents an option that can be passed to New.
func WithFilename ¶
WithFilename sets the filename to be associated with the input.
func WithGetCurrentNS ¶
WithGetCurrentNS sets the function to be used to get the current namespace.
func WithSymbolResolver ¶
func WithSymbolResolver(resolver SymbolResolver) Option
WithSymbolResolver sets the symbol resolver to be used when reading.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.