Documentation ¶
Index ¶
- Constants
- func All(array interface{}, predicate interface{}) bool
- func Any(array interface{}, predicate interface{}) bool
- func AnyError(array interface{}, predicate func(index int, value interface{}) error) (error, int, interface{})
- func Cast(array interface{}, castReceiver interface{})
- func Compare(left, right *string, ignoreCase bool) int
- func Copy(src, dest string) error
- func CopyMap(a interface{}) interface{}
- func Date(date string) (time.Time, error)
- func Datetime(t string) (time.Time, error)
- func Diff(expected interface{}, actual interface{}) string
- func DirectoryExists(path string) bool
- func EmptyArray(array interface{}) bool
- func EmptyOrWhiteSpace(text interface{}) bool
- func EnsureDirectory(path string, createIfNotExists bool) error
- func EqualValues(expected, actual interface{}) (bool, string)
- func FileExists(path string) bool
- func FirstDayOfMonth(t time.Time) time.Time
- func FirstOrDefault(array interface{}, predicate interface{}) (interface{}, bool)
- func FormatValue(value interface{}) string
- func IsEmptyFolder(name string) (bool, error)
- func MapKeys(a interface{}) interface{}
- func MapValues(a interface{}) interface{}
- func NormalizeDate(t time.Time) time.Time
- func ParseDate(dateString string, defaultDate time.Time) time.Time
- func ParseValue(value interface{}, stringValue string) (err error)
- func Ptr2Str(text *string) (string, bool)
- func ReverseTimeStamp(timestamp string) string
- func Select(array interface{}, selector interface{}) interface{}
- func SelectWithIndex(array interface{}, selector interface{}) interface{}
- func StrPtr2Ptr(getter func() (string, bool)) *string
- func ToDateString(t time.Time) string
- func ToDatetimeString(t time.Time) string
- func ToDatetimeStringWithoutDash(t time.Time) string
- func Where(array interface{}, predicate interface{}) interface{}
- func WhereInMapValues(m interface{}, predicate interface{}) interface{}
Constants ¶
View Source
const DateLayout string = "2006-01-02"
View Source
const DateTimeLayout string = "2006-01-02 15:04:05"
View Source
const DateTimeWithoutDashLayout = "20060102150405"
View Source
const EmptyString = ""
Variables ¶
This section is empty.
Functions ¶
func DirectoryExists ¶
func EmptyArray ¶
func EmptyArray(array interface{}) bool
func EmptyOrWhiteSpace ¶
func EmptyOrWhiteSpace(text interface{}) bool
func EnsureDirectory ¶
func EqualValues ¶
func FileExists ¶
func FirstOrDefault ¶
func FirstOrDefault(array interface{}, predicate interface{}) (interface{}, bool)
func FormatValue ¶
func FormatValue(value interface{}) string
func IsEmptyFolder ¶
func ParseValue ¶
func ReverseTimeStamp ¶
func SelectWithIndex ¶
func SelectWithIndex(array interface{}, selector interface{}) interface{}
func StrPtr2Ptr ¶
func ToDateString ¶
func ToDatetimeString ¶
func WhereInMapValues ¶
func WhereInMapValues(m interface{}, predicate interface{}) interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.