Documentation ¶
Index ¶
- func AsBool(val interface{}) bool
- func AsCSS(val interface{}) template.CSS
- func AsDateTime(val interface{}, layouts ...string) time.Time
- func AsFloat32(val interface{}) float32
- func AsFloat64(val interface{}) float64
- func AsHTML(val interface{}) template.HTML
- func AsHTMLAttr(val interface{}) template.HTMLAttr
- func AsInt(val interface{}) int
- func AsInt16(val interface{}) int16
- func AsInt32(val interface{}) int32
- func AsInt64(val interface{}) int64
- func AsInt8(val interface{}) int8
- func AsJS(val interface{}) template.JS
- func AsString(val interface{}) string
- func AsTimestamp(val interface{}) time.Time
- func AsUint(val interface{}) uint
- func AsUint16(val interface{}) uint16
- func AsUint32(val interface{}) uint32
- func AsUint64(val interface{}) uint64
- func AsUint8(val interface{}) uint8
- func Decr(val interface{}, n int64) int64
- func Incr(val interface{}, n int64) int64
- type String
- func (p String) Bool() bool
- func (p String) DateTime(layouts ...string) time.Time
- func (p String) Float32() float32
- func (p String) Float64() float64
- func (p String) Int() int
- func (p String) Int32() int32
- func (p String) Int64() int64
- func (p String) Interface() interface{}
- func (p String) Raw() string
- func (p String) Split(sep string, limit ...int) StringSlice
- func (p String) String() string
- func (p String) Timestamp() time.Time
- func (p String) Trim() String
- func (p String) Uint() uint
- func (p String) Uint32() uint32
- func (p String) Uint64() uint64
- type StringMap
- func (p StringMap) Bool(key string) bool
- func (p StringMap) DateTime(key string) time.Time
- func (p StringMap) Float32(key string) float32
- func (p StringMap) Float64(key string) float64
- func (p StringMap) Int(key string) int
- func (p StringMap) Int32(key string) int32
- func (p StringMap) Int64(key string) int64
- func (p StringMap) Interface(key string) interface{}
- func (p StringMap) Interfaces() map[string]interface{}
- func (p StringMap) Raw(key string) string
- func (p StringMap) Split(key string, sep string, limit ...int) StringSlice
- func (p StringMap) String(key string) string
- func (p StringMap) Timestamp(key string) time.Time
- func (p StringMap) Uint(key string) uint
- func (p StringMap) Uint32(key string) uint32
- func (p StringMap) Uint64(key string) uint64
- type StringSlice
- func (p StringSlice) Bool(filters ...func(int, bool) bool) []bool
- func (p StringSlice) Float32(filters ...func(int, float32) bool) []float32
- func (p StringSlice) Float64(filters ...func(int, float64) bool) []float64
- func (p StringSlice) Int(filters ...func(int, int) bool) []int
- func (p StringSlice) Int32(filters ...func(int, int32) bool) []int32
- func (p StringSlice) Int64(filters ...func(int, int64) bool) []int64
- func (p StringSlice) Interface(filters ...func(int, string) bool) []interface{}
- func (p StringSlice) Join(sep string) string
- func (p StringSlice) String() []string
- func (p StringSlice) Uint(filters ...func(int, uint) bool) []uint
- func (p StringSlice) Uint32(filters ...func(int, uint32) bool) []uint32
- func (p StringSlice) Uint64(filters ...func(int, uint64) bool) []uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsDateTime ¶ added in v1.4.3
func AsHTMLAttr ¶ added in v1.4.3
func AsTimestamp ¶ added in v1.4.3
Types ¶
type StringMap ¶ added in v1.3.5
func ToStringMap ¶ added in v1.4.0
func (StringMap) Interfaces ¶ added in v1.4.0
type StringSlice ¶ added in v1.3.0
type StringSlice []string
func Split ¶ added in v1.4.3
func Split(val interface{}, sep string, limit ...int) StringSlice
func (StringSlice) Bool ¶ added in v1.3.0
func (p StringSlice) Bool(filters ...func(int, bool) bool) []bool
func (StringSlice) Float32 ¶ added in v1.3.0
func (p StringSlice) Float32(filters ...func(int, float32) bool) []float32
func (StringSlice) Float64 ¶ added in v1.3.0
func (p StringSlice) Float64(filters ...func(int, float64) bool) []float64
func (StringSlice) Int ¶ added in v1.3.0
func (p StringSlice) Int(filters ...func(int, int) bool) []int
func (StringSlice) Int32 ¶ added in v1.3.0
func (p StringSlice) Int32(filters ...func(int, int32) bool) []int32
func (StringSlice) Int64 ¶ added in v1.3.0
func (p StringSlice) Int64(filters ...func(int, int64) bool) []int64
func (StringSlice) Interface ¶ added in v1.4.0
func (p StringSlice) Interface(filters ...func(int, string) bool) []interface{}
func (StringSlice) Join ¶ added in v1.4.2
func (p StringSlice) Join(sep string) string
func (StringSlice) String ¶ added in v1.3.0
func (p StringSlice) String() []string
func (StringSlice) Uint ¶ added in v1.3.0
func (p StringSlice) Uint(filters ...func(int, uint) bool) []uint
Click to show internal directories.
Click to hide internal directories.