Documentation ¶
Index ¶
- func AWSFuncs(f map[string]interface{})
- func AddBase64Funcs(f map[string]interface{})
- func AddConvFuncs(f map[string]interface{})
- func AddDataFuncs(f map[string]interface{}, d *data.Data)
- func AddEnvFuncs(f map[string]interface{})
- func AddNetFuncs(f map[string]interface{})
- func AddReFuncs(f map[string]interface{})
- func AddStringFuncs(f map[string]interface{})
- func AddTimeFuncs(f map[string]interface{})
- type Base64Funcs
- type ConvFuncs
- func (f *ConvFuncs) Atoi(s string) int
- func (f *ConvFuncs) Bool(s string) bool
- func (f *ConvFuncs) Has(in interface{}, key string) bool
- func (f *ConvFuncs) Join(in interface{}, sep string) string
- func (f *ConvFuncs) ParseFloat(s string, bitSize int) float64
- func (f *ConvFuncs) ParseInt(s string, base, bitSize int) int64
- func (f *ConvFuncs) ParseUint(s string, base, bitSize int) uint64
- func (f *ConvFuncs) Slice(args ...interface{}) []interface{}
- func (f *ConvFuncs) URL(s string) (*url.URL, error)
- type DataFuncs
- func (f *DataFuncs) CSV(args ...string) [][]string
- func (f *DataFuncs) CSVByColumn(args ...string) (cols map[string][]string)
- func (f *DataFuncs) CSVByRow(args ...string) (rows []map[string]string)
- func (f *DataFuncs) JSON(in string) map[string]interface{}
- func (f *DataFuncs) JSONArray(in string) []interface{}
- func (f *DataFuncs) TOML(in string) interface{}
- func (f *DataFuncs) ToCSV(args ...interface{}) string
- func (f *DataFuncs) ToJSON(in interface{}) string
- func (f *DataFuncs) ToJSONPretty(indent string, in interface{}) string
- func (f *DataFuncs) ToTOML(in interface{}) string
- func (f *DataFuncs) ToYAML(in interface{}) string
- func (f *DataFuncs) YAML(in string) map[string]interface{}
- func (f *DataFuncs) YAMLArray(in string) []interface{}
- type EnvFuncs
- type Funcs
- type NetFuncs
- func (f *NetFuncs) LookupCNAME(name string) string
- func (f *NetFuncs) LookupIP(name string) string
- func (f *NetFuncs) LookupIPs(name string) []string
- func (f *NetFuncs) LookupSRV(name string) *stdnet.SRV
- func (f *NetFuncs) LookupSRVs(name string) []*stdnet.SRV
- func (f *NetFuncs) LookupTXT(name string) []string
- type ReFuncs
- type StringFuncs
- func (f *StringFuncs) Contains(substr, s string) bool
- func (f *StringFuncs) HasPrefix(prefix, s string) bool
- func (f *StringFuncs) HasSuffix(suffix, s string) bool
- func (f *StringFuncs) Indent(args ...interface{}) string
- func (f *StringFuncs) ReplaceAll(old, new, s string) string
- func (f *StringFuncs) Split(sep, s string) []string
- func (f *StringFuncs) SplitN(sep string, n int, s string) []string
- func (f *StringFuncs) Title(s string) string
- func (f *StringFuncs) ToLower(s string) string
- func (f *StringFuncs) ToUpper(s string) string
- func (f *StringFuncs) Trim(cutset, s string) string
- func (f *StringFuncs) TrimSpace(s string) string
- type TimeFuncs
- func (f *TimeFuncs) Hour(n int64) gotime.Duration
- func (f *TimeFuncs) Microsecond(n int64) gotime.Duration
- func (f *TimeFuncs) Millisecond(n int64) gotime.Duration
- func (f *TimeFuncs) Minute(n int64) gotime.Duration
- func (f *TimeFuncs) Nanosecond(n int64) gotime.Duration
- func (f *TimeFuncs) Now() gotime.Time
- func (f *TimeFuncs) Parse(layout, value string) (gotime.Time, error)
- func (f *TimeFuncs) Second(n int64) gotime.Duration
- func (f *TimeFuncs) Unix(in interface{}) (gotime.Time, error)
- func (f *TimeFuncs) ZoneName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddStringFuncs ¶ added in v1.9.0
func AddStringFuncs(f map[string]interface{})
AddStringFuncs -
Types ¶
type DataFuncs ¶
type DataFuncs struct{}
DataFuncs -
func (*DataFuncs) CSVByColumn ¶
CSVByColumn -
func (*DataFuncs) ToJSONPretty ¶
ToJSONPretty -
type Funcs ¶
type Funcs struct {
// contains filtered or unexported fields
}
Funcs -
func (*Funcs) EC2Dynamic ¶
EC2Dynamic -
type NetFuncs ¶ added in v1.9.0
type NetFuncs struct{}
NetFuncs -
func (*NetFuncs) LookupCNAME ¶ added in v1.9.0
LookupCNAME -
func (*NetFuncs) LookupSRVs ¶ added in v1.9.0
LookupSRVs -
type StringFuncs ¶ added in v1.9.0
type StringFuncs struct{}
StringFuncs -
func (*StringFuncs) Contains ¶ added in v1.9.0
func (f *StringFuncs) Contains(substr, s string) bool
Contains -
func (*StringFuncs) HasPrefix ¶ added in v1.9.0
func (f *StringFuncs) HasPrefix(prefix, s string) bool
HasPrefix -
func (*StringFuncs) HasSuffix ¶ added in v1.9.0
func (f *StringFuncs) HasSuffix(suffix, s string) bool
HasSuffix -
func (*StringFuncs) Indent ¶ added in v1.9.0
func (f *StringFuncs) Indent(args ...interface{}) string
Indent -
func (*StringFuncs) ReplaceAll ¶ added in v1.9.0
func (f *StringFuncs) ReplaceAll(old, new, s string) string
ReplaceAll -
func (*StringFuncs) Split ¶ added in v1.9.0
func (f *StringFuncs) Split(sep, s string) []string
Split -
func (*StringFuncs) SplitN ¶ added in v1.9.0
func (f *StringFuncs) SplitN(sep string, n int, s string) []string
SplitN -
func (*StringFuncs) ToLower ¶ added in v1.9.0
func (f *StringFuncs) ToLower(s string) string
ToLower -
func (*StringFuncs) ToUpper ¶ added in v1.9.0
func (f *StringFuncs) ToUpper(s string) string
ToUpper -
func (*StringFuncs) Trim ¶ added in v1.9.0
func (f *StringFuncs) Trim(cutset, s string) string
Trim -
func (*StringFuncs) TrimSpace ¶ added in v1.9.0
func (f *StringFuncs) TrimSpace(s string) string
TrimSpace -
type TimeFuncs ¶
type TimeFuncs struct { ANSIC string UnixDate string RubyDate string RFC822 string RFC822Z string RFC850 string RFC1123 string RFC1123Z string RFC3339 string RFC3339Nano string Kitchen string Stamp string StampMilli string StampMicro string StampNano string }
TimeFuncs -
func (*TimeFuncs) Microsecond ¶
Microsecond -
func (*TimeFuncs) Millisecond ¶
Millisecond -
Click to show internal directories.
Click to hide internal directories.