Documentation
¶
Index ¶
- func CalculateMin(subCount int, v interface{}) (res int, err error)
- func DirSize(path string) (float64, error)
- func FormatDuration(d time.Duration) string
- func GetAnyFromMap(m interface{}, key string) (interface{}, error)
- func GetBoolFromMap(m interface{}, key string) (bool, error)
- func GetFloatFromMap(m interface{}, key string) (float64, error)
- func GetMapFromMap(m interface{}, key string) (map[string]interface{}, error)
- func GetStringFromMap(m interface{}, key string) (string, error)
- func GetStringSliceFromMap(m interface{}, key string) ([]string, error)
- func GinBindJSON(c *gin.Context, obj interface{}) error
- func GinRenderJSON(c *gin.Context, code int, obj interface{})
- func IsExist(path string) (bool, error)
- func IsNumeric(s string) bool
- func ParseDuration(s string) (time.Duration, error)
- func ParseTime(value interface{}, format, timeZone string) (time.Time, error)
- func ParseTimeZone(name string) (*time.Location, error)
- func SliceExists(set []string, find string) bool
- func StringToInt(s string) int
- func ToBool(v interface{}) (bool, error)
- func ToFloat64(v interface{}) (float64, error)
- func ToInt(v interface{}) (int, error)
- func ToString(v interface{}) (string, error)
- func ToUint64(v interface{}) (uint64, error)
- func Unix(n int64) time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateMin ¶
CalculateMin calculate the MinimumShouldMatch value with given expr and sub query count.
func FormatDuration ¶
func GetAnyFromMap ¶
func GetBoolFromMap ¶
func GetFloatFromMap ¶
func GetMapFromMap ¶
func GetStringFromMap ¶
func GetStringSliceFromMap ¶
func GinBindJSON ¶
func GinRenderJSON ¶
func SliceExists ¶
SliceExists checks if a string is in a set.
func StringToInt ¶
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.