Documentation
¶
Overview ¶
Package util provides general-purpose helper functions for string and array manipulation.
Index ¶
- func AmPm(date time.Time) string
- func ArrayIsEmpty[T any](array []T) bool
- func ArrayIsNotEmpty[T any](array []T) bool
- func Ptr[T any](v T) *T
- func ReplaceEach(text string, searchList []string, replacementList []string) string
- func ToGMTString(date time.Time) string
- func ToString(date time.Time) string
- func WeekString(weekday time.Weekday) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayIsEmpty ¶
func ArrayIsNotEmpty ¶
func ReplaceEach ¶
ReplaceEach performs multiple string replacements simultaneously. It takes a list of search strings and their corresponding replacements.
func ToGMTString ¶
ToGMTString formats a time.Time object into an ISO 8601 GMT string used in HWPX metadata.
func ToString ¶
ToString formats a time.Time object into a Korean-style readable date and time string.
func WeekString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.