util

package
v0.0.0-...-ff237a8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBusinessDays

func AddBusinessDays(daysToAdd int) string

func GetEnvWithFallback

func GetEnvWithFallback(key, fallback string) string

func MockDB

func MockDB() (*repo.Repository, sqlmock.Sqlmock)

func NewAsynqOps

func NewAsynqOps() asynq.RedisClientOpt

func NewGoroutineContext

func NewGoroutineContext(ctx context.Context) context.Context

func NewMockRepository

func NewMockRepository(t *testing.T) *repo.Repository

func PrettyP

func PrettyP(i interface{})

func ValToPtr

func ValToPtr[T any](val T) *T

func ValidateEmail

func ValidateEmail(email string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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