Documentation ¶
Index ¶
- func NewFilter(z *zlog.Logger, cfg Config) (func(string, os.FileInfo) (bool, error), error)
- func NewScanner(z *zlog.Logger, cfg Config) (func(root string, f func(*RawElement) error) ([]*RawElement, error), error)
- func ScanFile(z *zlog.Logger, cfg BracketConfig, path string, f func(*RawElement) error) error
- func ScanRawReader(z *zlog.Logger, cfg BracketConfig, r io.Reader, f func(*RawElement) error) error
- func ScanSitterReader(z *zlog.Logger, cfg BracketConfig, r io.Reader, f func(*RawElement) error) error
- type BracketConfig
- type Config
- type Loc
- type RawElement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewScanner ¶
func NewScanner(z *zlog.Logger, cfg Config) (func(root string, f func(*RawElement) error) ([]*RawElement, error), error)
func ScanFile ¶
func ScanFile( z *zlog.Logger, cfg BracketConfig, path string, f func(*RawElement) error, ) error
func ScanRawReader ¶
func ScanRawReader( z *zlog.Logger, cfg BracketConfig, r io.Reader, f func(*RawElement) error, ) error
func ScanSitterReader ¶
func ScanSitterReader( z *zlog.Logger, cfg BracketConfig, r io.Reader, f func(*RawElement) error, ) error
Types ¶
type BracketConfig ¶
func (*BracketConfig) OverrideWith ¶
func (c *BracketConfig) OverrideWith(o BracketConfig)
type Config ¶
type Config struct { Bracket BracketConfig `yaml:"bracket"` Ignore []string `yaml:"ignore"` }
type Loc ¶
func ParseLocString ¶
type RawElement ¶
Click to show internal directories.
Click to hide internal directories.