utils

package
v0.0.0-...-bfb5a2a Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytePtr

func BytePtr(b byte) *byte

func EnvOrDefault

func EnvOrDefault(key, defaultValue string) string

EnvOrDefault returns the value of the environment variable named by the key. If the variable is not present, it returns the default value.

func ErrToStrPtr

func ErrToStrPtr(err error) *string

func Int64Ptr

func Int64Ptr(i int64) *int64

func MustParseDBUrl

func MustParseDBUrl(dbUrl string) gorm.Dialector

func ParseDBUrl

func ParseDBUrl(dbUrl string) (dialector gorm.Dialector, err error)

func ReplaceDotWithDash

func ReplaceDotWithDash(s string) string

func StringPtr

func StringPtr(s string) *string

func Uint32Ptr

func Uint32Ptr(i uint32) *uint32

Types

This section is empty.

Jump to

Keyboard shortcuts

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