lib

package
v0.0.0-...-11583a9 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenID

func GenID(length ...int) (string, error)

GenerateID generates a random ID with the default alphabet and length of 8 or an overridden length.

func ParseTime

func ParseTime(durationStr string) (time.Time, error)

ParseTime parses a string into a time.Time object

func ToJSONByteArr

func ToJSONByteArr(v interface{}) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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