util

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool2Ptr

func Bool2Ptr(b bool) *bool

func EnsureDB

func EnsureDB(conn string) (bool, error)

func Int2Ptr

func Int2Ptr(i int) *int

func Ptr2Float

func Ptr2Float(val *float32) float32

Ptr2Float returns the value passed in if it isn't nil. Returns 0 otherwise.

func Ptr2Int

func Ptr2Int(i *int) int

func Ptr2Str

func Ptr2Str(p *string) string

func Ptr2Time

func Ptr2Time(t *time.Time) time.Time

func RunFlywayCmd

func RunFlywayCmd(conn, migrationsDir, flywayCommand string) error

RunFlywayCmd FlayWay command on by using th current,

func Str2Ptr

func Str2Ptr(p string) *string

func Str2Uint32

func Str2Uint32(str string) (uint32, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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