Documentation ¶
Overview ¶
nolint:varnamelen
nolint varnamelen
Index ¶
- Variables
- func DebugString(ctx context.Context, value string)
- func DebugStringSlice(ctx context.Context, value string) []string
- func Escape(ctx context.Context, input string, quote Quote) string
- func EscapeFull(ctx context.Context, input string, quote Quote, ASCIIonly, graphicOnly bool) string
- func EscapeRune(ctx context.Context, buf []byte, runeValue rune, quote Quote, ...) []byte
- func Unescape(ctx context.Context, input string, quote Quote) (out string, err error)
- type Annotation
- type Option
- type Quote
- type Token
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidQuoteStyle = errors.New("Invalid quote style")
Functions ¶
func DebugString ¶ added in v0.9.4
func DebugStringSlice ¶ added in v0.9.4
func EscapeFull ¶ added in v0.9.4
func EscapeRune ¶ added in v0.9.4
Types ¶
type Annotation ¶
func (Annotation) IsDottie ¶
func (a Annotation) IsDottie() bool
func (Annotation) String ¶
func (a Annotation) String() string
type Option ¶
type Option func(*Token)
func WithAnnotation ¶
func WithLineNumber ¶
func WithLiteral ¶
func WithLiteralRune ¶
func WithOffset ¶
func WithQuoteType ¶
type Quote ¶
type Quote uint
func QuoteFromString ¶ added in v0.5.0
func (Quote) MarshalJSON ¶ added in v0.8.0
type Token ¶
type Type ¶
type Type uint
Type is the set of lexical tokens.
const ( Illegal Type = iota EOF GroupBanner // # -- ### (3 or more hashtags) Comment // # -- # <anything> CommentAnnotation // # -- # @<name> <value> Assign // = -- KEY=VALUE Identifier // Name of the variable Value // Value is an interpreted value of the variable, if it contains special characters, they will be escaped RawValue // RawValue is used as-is. Special characters are not escaped. Space // All whitespace symbols except \n (new line) NewLine // A new line symbol (\n) )
The list of tokens.
Click to show internal directories.
Click to hide internal directories.