util

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDuration

func FormatDuration(d time.Duration) string

func FormatMemory

func FormatMemory(memBytes int) string

func FormatTime

func FormatTime(t time.Time) string

func NullIntString

func NullIntString(ni null.Int, defValue ...string) string

func ParseDuration

func ParseDuration(s string) (time.Duration, error)

func ParseHoursMinutes

func ParseHoursMinutes(s string) (time.Duration, error)

func ParseMemory

func ParseMemory(s string) (int, error)

func ToMap

func ToMap[K comparable, V any](s []V, keyF func(V) K) map[K]V

Types

This section is empty.

Jump to

Keyboard shortcuts

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