Documentation ¶
Index ¶
- func GenerateId() string
- func GetAudioDuration(filePath string) (time.Duration, error)
- func GetLocalIp() string
- func HttpPost(ctx context.Context, url string, header map[string]string, ...) error
- func Round(f float64, n int) float64
- func SSEServer(ctx context.Context, data 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
- type IntInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateId ¶
func GenerateId() string
func GetAudioDuration ¶ added in v0.5.0
func GetLocalIp ¶ added in v0.2.0
func GetLocalIp() string
Types ¶
Click to show internal directories.
Click to hide internal directories.