Versions in this module Expand all Collapse all v0 v0.2.0 May 16, 2024 Changes in this version + const DATE_TIME_MONTH_FORMAT + func Delete(slice []string, index int) (newSlice []string) + func FormatDateTime(timestamp int64) string + func FormatDateTimeMonth(timestamp int64) string + func PriceConv(ratio float64) float64 + func QuotaConv(quota int) float64 + func Round(f float64, n int) float64 v0.1.0 Mar 30, 2024 Changes in this version + const DATE_FORMAT + const DATE_MINUTE_FORMAT + const DATE_TIME_FORMAT + var Location *time.Location + func FindAddress(ctx context.Context, ip string) (string, error) + func FormatDatetime(timestamp int64) string + func GenerateId() string + func HttpDownloadFile(ctx context.Context, fileURL string, proxyURL ...string) []byte + func HttpGet(ctx context.Context, url string, header map[string]string, data g.Map, ...) error + func HttpPost(ctx context.Context, url string, header map[string]string, ...) error + func HttpPostJson(ctx context.Context, url string, header map[string]string, ...) error + func NewKey(prefix string, length int, ids ...string) string + func RenderTemplate(data any) (string, error) + func ToMap[T any, K int | string](arr []T, fn func(T) K) map[K]T + func Unique[T IntInterface | string](data []T) []T + func WebSocketClient(ctx context.Context, wsURL string, messageType int, message []byte, ...) (*websocket.Conn, error) + func WebSocketClientOnlyReceive(ctx context.Context, wsURL string, result chan []byte, proxyURL ...string) (*websocket.Conn, error) + type DateTime struct + EndDate string + EndDateTime string + EndTimestamp int64 + StartDate string + StartDateTime string + StartTimestamp int64 + func Day(startTime, endTime string) (dateTimeList []*DateTime) + func MinuteRange(startTime, endTime int64) []*DateTime + func Month(startTime, endTime string) (dateTimeList []*DateTime) + func Week(startTime, endTime string) (dateTimeList []*DateTime) + type IntInterface interface + type IpAddressResponse struct + Code string + ErrorCode int + Reason string + Result struct{ ... }