Documentation ¶
Index ¶
- func CeilFloat(val float64, precision int) float64
- func ConvertToMap(str string, length int64) ([]map[string]string, error)
- func ConvertToSlice(str string, length int64) ([]string, error)
- func Diff(elems []string, a ...[]string) []string
- func Filter(elems []string, fn func(a string) bool) []string
- func FloorFloat(val float64, precision int) float64
- func InArray(needle string, arr []string) bool
- func Intersect(a, b []string) []string
- func Mask(str string) string
- func Merge(a ...[]string) []string
- func ParseDate(t string) *time.Time
- func ParseTime(t string) *time.Time
- func PastTime(p time.Time) string
- func RemoveHTMLTags(htmlStr string) string
- func RoundFloat(val float64, precision int) float64
- func Shuffle(arr []string)
- func ToMap(elems []string) map[string]struct{}
- func Unique(elems []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToMap ¶
转换为 map
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.