util

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package util provides general-purpose helper functions for string and array manipulation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AmPm

func AmPm(date time.Time) string

func ArrayIsEmpty

func ArrayIsEmpty[T any](array []T) bool

func ArrayIsNotEmpty

func ArrayIsNotEmpty[T any](array []T) bool

func Ptr

func Ptr[T any](v T) *T

func ReplaceEach

func ReplaceEach(text string, searchList []string, replacementList []string) string

ReplaceEach performs multiple string replacements simultaneously. It takes a list of search strings and their corresponding replacements.

func ToGMTString

func ToGMTString(date time.Time) string

ToGMTString formats a time.Time object into an ISO 8601 GMT string used in HWPX metadata.

func ToString

func ToString(date time.Time) string

ToString formats a time.Time object into a Korean-style readable date and time string.

func WeekString

func WeekString(weekday time.Weekday) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL