Documentation ¶
Index ¶
- func AtArrayPosition(val interface{}, array interface{}) (index int)
- func CreateFileIfNotExist(filePath string) error
- func GetDatetimeEnd(datetime time.Time) time.Time
- func GetDatetimeStart(datetime time.Time) time.Time
- func InArray(val interface{}, array interface{}) bool
- func ParseStrToDate(input string, format string) (time.Time, error)
- func RemoveEmptyString(s []string) []string
- func ToDate(datetime time.Time) time.Time
- func WriteToTempFile(content string, tempFilePattern string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtArrayPosition ¶
func AtArrayPosition(val interface{}, array interface{}) (index int)
AtArrayPosition finds the position(int) of val in an Array(Slice)
func CreateFileIfNotExist ¶
CreateFileIfNotExist creates a file (absoulte path) returns error when failed
func GetDatetimeEnd ¶
GetDatetimeStart returns the latest time of datetime ex: 2022-01-01 23:59:59
func GetDatetimeStart ¶
GetDatetimeStart returns the earliest time of datetime ex: 2022-01-01 00:00:00
func InArray ¶
func InArray(val interface{}, array interface{}) bool
InArray checks is val exists in an Array(Slice)
func ParseStrToDate ¶
ParseStrToDate converts string to time.Time with specific format
func RemoveEmptyString ¶
RemoveEmptyString removes empty string from string slice
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.