Documentation ¶
Index ¶
- func Contains(s, substr string) bool
- func Format(format string, values ...interface{}) string
- func HasPrefix(s string, prefix string) bool
- func HasSuffix(s, suffix string) bool
- func Join(a []string, sep string) string
- func Lower(s string) string
- func Replace(s, old, new string) string
- func Split(s string, sep string) []interface{}
- func Title(s string) string
- func TrimPrefix(s string, prefix string) string
- func TrimSpace(s string) string
- func TrimSuffix(s, suffix string) string
- func Upper(s string) string
- type ContainsInterpreter
- type FormatInterpreter
- type HasPrefixInterpreter
- type HasSuffixInterpreter
- type JoinInterpreter
- type LowerInterpreter
- type ReplaceInterpreter
- type SplitInterpreter
- type TitleInterpreter
- type TrimPrefixInterpreter
- type TrimSpaceInterpreter
- type TrimSuffixInterpreter
- type UpperInterpreter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Format ¶
Format formats according to a format specifier and returns the resulting string. @function
func Join ¶
Join concatenates the elements of a to create a single string. The separator string sep is placed between elements in the resulting string. @function
func Lower ¶
Lower returns a copy of the string s with all Unicode letters mapped to their lower case. @function
func Replace ¶
Replace returns a copy of the string s with all non-overlapping instances of old replaced by new. @function
func Split ¶
Split slices s into all substrings separated by sep and returns a slice of the substrings between those separators.
If s does not contain sep and sep is not empty, Split returns a slice of length 1 whose only element is s.
If sep is empty, Split splits after each UTF-8 sequence. If both s and sep are empty, Split returns an empty slice. @function
func Title ¶
Title returns a copy of the string s with all Unicode letters that begin words mapped to their title case. @function
func TrimPrefix ¶
TrimPrefix returns s without the provided leading prefix string. If s doesn't start with prefix, s is returned unchanged. @function
func TrimSpace ¶
TrimSpace returns a slice of the string s, with all leading and trailing white space removed, as defined by Unicode. @function
func TrimSuffix ¶
TrimSuffix returns s without the provided trailing suffix string. If s doesn't end with suffix, s is returned unchanged. @function
Types ¶
type ContainsInterpreter ¶
type ContainsInterpreter struct { }
ContainsInterpreter is the Conflow interpreter for the Contains function
func (ContainsInterpreter) Eval ¶
func (i ContainsInterpreter) Eval(ctx interface{}, args []interface{}) (interface{}, error)
Eval returns with the result of the function
func (ContainsInterpreter) Schema ¶
func (i ContainsInterpreter) Schema() schema.Schema
type FormatInterpreter ¶
type FormatInterpreter struct { }
FormatInterpreter is the Conflow interpreter for the Format function
func (FormatInterpreter) Eval ¶
func (i FormatInterpreter) Eval(ctx interface{}, args []interface{}) (interface{}, error)
Eval returns with the result of the function
func (FormatInterpreter) Schema ¶
func (i FormatInterpreter) Schema() schema.Schema
type HasPrefixInterpreter ¶
type HasPrefixInterpreter struct { }
HasPrefixInterpreter is the Conflow interpreter for the HasPrefix function
func (HasPrefixInterpreter) Eval ¶
func (i HasPrefixInterpreter) Eval(ctx interface{}, args []interface{}) (interface{}, error)
Eval returns with the result of the function
func (HasPrefixInterpreter) Schema ¶
func (i HasPrefixInterpreter) Schema() schema.Schema
type HasSuffixInterpreter ¶
type HasSuffixInterpreter struct { }
HasSuffixInterpreter is the Conflow interpreter for the HasSuffix function
func (HasSuffixInterpreter) Eval ¶
func (i HasSuffixInterpreter) Eval(ctx interface{}, args []interface{}) (interface{}, error)
Eval returns with the result of the function
func (HasSuffixInterpreter) Schema ¶
func (i HasSuffixInterpreter) Schema() schema.Schema
type JoinInterpreter ¶
type JoinInterpreter struct { }
JoinInterpreter is the Conflow interpreter for the Join function
func (JoinInterpreter) Eval ¶
func (i JoinInterpreter) Eval(ctx interface{}, args []interface{}) (interface{}, error)
Eval returns with the result of the function
func (JoinInterpreter) Schema ¶
func (i JoinInterpreter) Schema() schema.Schema
type LowerInterpreter ¶
type LowerInterpreter struct { }
LowerInterpreter is the Conflow interpreter for the Lower function
func (LowerInterpreter) Eval ¶
func (i LowerInterpreter) Eval(ctx interface{}, args []interface{}) (interface{}, error)
Eval returns with the result of the function
func (LowerInterpreter) Schema ¶
func (i LowerInterpreter) Schema() schema.Schema
type ReplaceInterpreter ¶
type ReplaceInterpreter struct { }
ReplaceInterpreter is the Conflow interpreter for the Replace function
func (ReplaceInterpreter) Eval ¶
func (i ReplaceInterpreter) Eval(ctx interface{}, args []interface{}) (interface{}, error)
Eval returns with the result of the function
func (ReplaceInterpreter) Schema ¶
func (i ReplaceInterpreter) Schema() schema.Schema
type SplitInterpreter ¶
type SplitInterpreter struct { }
SplitInterpreter is the Conflow interpreter for the Split function
func (SplitInterpreter) Eval ¶
func (i SplitInterpreter) Eval(ctx interface{}, args []interface{}) (interface{}, error)
Eval returns with the result of the function
func (SplitInterpreter) Schema ¶
func (i SplitInterpreter) Schema() schema.Schema
type TitleInterpreter ¶
type TitleInterpreter struct { }
TitleInterpreter is the Conflow interpreter for the Title function
func (TitleInterpreter) Eval ¶
func (i TitleInterpreter) Eval(ctx interface{}, args []interface{}) (interface{}, error)
Eval returns with the result of the function
func (TitleInterpreter) Schema ¶
func (i TitleInterpreter) Schema() schema.Schema
type TrimPrefixInterpreter ¶
type TrimPrefixInterpreter struct { }
TrimPrefixInterpreter is the Conflow interpreter for the TrimPrefix function
func (TrimPrefixInterpreter) Eval ¶
func (i TrimPrefixInterpreter) Eval(ctx interface{}, args []interface{}) (interface{}, error)
Eval returns with the result of the function
func (TrimPrefixInterpreter) Schema ¶
func (i TrimPrefixInterpreter) Schema() schema.Schema
type TrimSpaceInterpreter ¶
type TrimSpaceInterpreter struct { }
TrimSpaceInterpreter is the Conflow interpreter for the TrimSpace function
func (TrimSpaceInterpreter) Eval ¶
func (i TrimSpaceInterpreter) Eval(ctx interface{}, args []interface{}) (interface{}, error)
Eval returns with the result of the function
func (TrimSpaceInterpreter) Schema ¶
func (i TrimSpaceInterpreter) Schema() schema.Schema
type TrimSuffixInterpreter ¶
type TrimSuffixInterpreter struct { }
TrimSuffixInterpreter is the Conflow interpreter for the TrimSuffix function
func (TrimSuffixInterpreter) Eval ¶
func (i TrimSuffixInterpreter) Eval(ctx interface{}, args []interface{}) (interface{}, error)
Eval returns with the result of the function
func (TrimSuffixInterpreter) Schema ¶
func (i TrimSuffixInterpreter) Schema() schema.Schema
type UpperInterpreter ¶
type UpperInterpreter struct { }
UpperInterpreter is the Conflow interpreter for the Upper function
func (UpperInterpreter) Eval ¶
func (i UpperInterpreter) Eval(ctx interface{}, args []interface{}) (interface{}, error)
Eval returns with the result of the function
func (UpperInterpreter) Schema ¶
func (i UpperInterpreter) Schema() schema.Schema
Source Files ¶
- contains.cf.go
- contains.go
- format.cf.go
- format.go
- has_prefix.cf.go
- has_prefix.go
- has_suffix.cf.go
- has_suffix.go
- join.cf.go
- join.go
- lower.cf.go
- lower.go
- replace.cf.go
- replace.go
- split.cf.go
- split.go
- title.cf.go
- title.go
- trim_prefix.cf.go
- trim_prefix.go
- trim_space.cf.go
- trim_space.go
- trim_suffix.cf.go
- trim_suffix.go
- upper.cf.go
- upper.go