Documentation
¶
Overview ¶
Package filter provide data filter, sanitize, convert
Index ¶
- func GetByPath(key string, mp map[string]interface{}) (val interface{}, ok bool)
- func Int(str string) (int, error)
- func MustFloat(str string) float64
- func MustInt(str string) int
- func MustUint(str string) uint64
- func Str2Array(str string, sep ...string) []string
- func ToFloat(str string) (float64, error)
- func ToInt(str string) (int, error)
- func ToInt64(str string) (int64, error)
- func ToUint(str string) (uint64, error)
- func Trim(str string, cutSet ...string) string
- func Uint(str string) (uint64, error)
- type Filtration
- type String
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Filtration ¶
type Filtration struct {
// contains filtered or unexported fields
}
Filtration definition. Sanitization Sanitizing Sanitize
func (*Filtration) Set ¶
func (f *Filtration) Set(field string, val interface{}) error
Set value by key
Click to show internal directories.
Click to hide internal directories.