utils

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MkdirMode = 0770
)
View Source
const (
	Seed = 322124
)

Variables

This section is empty.

Functions

func GetAllThursdays

func GetAllThursdays(from time.Time, to time.Time) []time.Time

Returns all thursdays starting from now up to the input date

func GetSIDGenerator

func GetSIDGenerator() *shortid.Shortid

func IntToBytes

func IntToBytes(x int64) []byte

func Mkdir

func Mkdir(path ...string) error

func NextThursday

func NextThursday(t time.Time) time.Time

func PrettyPrint

func PrettyPrint(v interface{}) (err error)

func StructToJsonMap

func StructToJsonMap(in interface{}) types.JsonMap

Types

This section is empty.

Jump to

Keyboard shortcuts

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