toolbox

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStructTags

func GetStructTags(v interface{}, tag string) []string

func HashSha256

func HashSha256(data []byte) []byte

func IndexOfString

func IndexOfString(slice []string, target string) int

func IsNilOrEmpty

func IsNilOrEmpty(text *string) bool

func MustBeTrue

func MustBeTrue(cond bool, msg string, args ...interface{})

func NewRandomBytes

func NewRandomBytes(length int) []byte

func NewRandomString

func NewRandomString(length int) string

func RemoveFromStings

func RemoveFromStings(texts []string, toRemove string) []string

func SortedStringsContains

func SortedStringsContains(list []string, search string) bool

func ToAnyStringOf

func ToAnyStringOf(text *string, allowed []string, def string) string

func ToInt64

func ToInt64(value *int64, def int64) int64

func ToString

func ToString(value *string, def string) string

func Uups

func Uups(err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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