Documentation
¶
Overview ¶
Package lexers provides helpers for tokenizing YAML strings.
This package wraps github.com/goccy/go-yaml/lexer with additional utilities for document-aware tokenization and iterating over token streams.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Tokenize ¶
Tokenize wraps lexer.Tokenize for convenience.
func TokenizeDocuments ¶
TokenizeDocuments is like lexer.Tokenize, but splits the YAML string into multiple token streams, one for each YAML document found (separated by '---' tokens).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.