Documentation ¶
Index ¶
- Variables
- func Language(opts ...Option) gval.Language
- type DelimitedLanguage
- type DelimitedLanguageFactory
- type DelimitedLanguageFactoryFunc
- type EvaluationError
- type Joiner
- type JoinerFunc
- type Option
- type Options
- type StringFormatter
- type StringFormatterFunc
- type StringJoiner
- type StringJoinerOption
- type StringJoinerOptions
- type WithDelimitedLanguage
- type WithDelimitedLanguageFactory
- type WithEmptyStringsEliminated
- type WithJoiner
- type WithStringFormatter
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultStringJoiner = NewStringJoiner()
View Source
var StopFlag = langctx.NewBoolFlag()
Functions ¶
Types ¶
type DelimitedLanguage ¶
type DelimitedLanguageFactory ¶
type DelimitedLanguageFactory interface {
DelimitedLanguage(tpl gval.Language) *DelimitedLanguage
}
func DelimitedExpressionLanguageFactory ¶
func DelimitedExpressionLanguageFactory(dl *DelimitedLanguage) DelimitedLanguageFactory
type DelimitedLanguageFactoryFunc ¶
type DelimitedLanguageFactoryFunc func(tpl gval.Language) *DelimitedLanguage
func (DelimitedLanguageFactoryFunc) DelimitedLanguage ¶
func (dlff DelimitedLanguageFactoryFunc) DelimitedLanguage(tpl gval.Language) *DelimitedLanguage
type EvaluationError ¶ added in v0.2.0
func (*EvaluationError) Error ¶ added in v0.2.0
func (e *EvaluationError) Error() string
func (*EvaluationError) Unwrap ¶ added in v0.2.0
func (e *EvaluationError) Unwrap() error
type JoinerFunc ¶
type Options ¶
type Options struct { Joiner Joiner DelimitedLanguageFactories []DelimitedLanguageFactory }
func (*Options) ApplyOptions ¶
type StringFormatter ¶
var DefaultStringFormatter StringFormatter = &defaultStringFormatter{}
type StringFormatterFunc ¶
func (StringFormatterFunc) FormatString ¶
type StringJoiner ¶
type StringJoiner struct {
// contains filtered or unexported fields
}
func NewStringJoiner ¶
func NewStringJoiner(opts ...StringJoinerOption) *StringJoiner
type StringJoinerOption ¶
type StringJoinerOption interface {
ApplyToStringJoinerOptions(target *StringJoinerOptions)
}
type StringJoinerOptions ¶
type StringJoinerOptions struct { Formatter StringFormatter EliminateEmptyStrings bool }
func (*StringJoinerOptions) ApplyOptions ¶
func (o *StringJoinerOptions) ApplyOptions(opts []StringJoinerOption)
type WithDelimitedLanguage ¶
type WithDelimitedLanguage struct {
*DelimitedLanguage
}
func (WithDelimitedLanguage) ApplyToOptions ¶
func (wdl WithDelimitedLanguage) ApplyToOptions(target *Options)
type WithDelimitedLanguageFactory ¶
type WithDelimitedLanguageFactory struct {
DelimitedLanguageFactory
}
func (WithDelimitedLanguageFactory) ApplyToOptions ¶
func (wdlf WithDelimitedLanguageFactory) ApplyToOptions(target *Options)
type WithEmptyStringsEliminated ¶
type WithEmptyStringsEliminated bool
func (WithEmptyStringsEliminated) ApplyToStringJoinerOptions ¶
func (wese WithEmptyStringsEliminated) ApplyToStringJoinerOptions(target *StringJoinerOptions)
type WithJoiner ¶
type WithJoiner struct {
Joiner
}
func (WithJoiner) ApplyToOptions ¶
func (wj WithJoiner) ApplyToOptions(target *Options)
type WithStringFormatter ¶
type WithStringFormatter struct {
StringFormatter
}
func (WithStringFormatter) ApplyToStringJoinerOptions ¶
func (wsf WithStringFormatter) ApplyToStringJoinerOptions(target *StringJoinerOptions)
Click to show internal directories.
Click to hide internal directories.