Documentation
¶
Index ¶
- func DefaultIfZero[T any](v T, fallback T) T
- func DurationS(seconds int64) time.Duration
- func HeaderMap(header http.Header) map[string]string
- func IsValidUUID(id string) bool
- func JsonResponse(code int, w http.ResponseWriter, data interface{})
- func KSUID() string
- func Must[T any](v T, err error) T
- func Pointer[T any](v T) *T
- func PointerValue[T any](v *T) T
- func RandomString(n int) string
- func UUID() string
- func UUIDShort() string
- func Validate(v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultIfZero ¶
func DefaultIfZero[T any](v T, fallback T) T
func IsValidUUID ¶
func JsonResponse ¶
func JsonResponse(code int, w http.ResponseWriter, data interface{})
func PointerValue ¶
func PointerValue[T any](v *T) T
func RandomString ¶ added in v0.2.0
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.