helpers

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 11 Imported by: 0

README

go-bolt-helpers

Bolt System GO helpers

go get github.com/vatt849/go-bolt-helpers

Documentation

Index

Constants

View Source
const (
	ERR_MSG_NOT_IMPLEMENTED = "not implemented"
)

Variables

View Source
var ErrNotImplemented = errors.New(ERR_MSG_NOT_IMPLEMENTED)

Functions

func ErrToValidation

func ErrToValidation(err error) validator.ValidationErrors

func FileExists

func FileExists(filename string) bool

func FilterUrl

func FilterUrl(u string) string

func IDArrToStr

func IDArrToStr(IDarr []uint) string

func IsErrDbNotFound

func IsErrDbNotFound(err error) bool

func IsErrNotImplemented

func IsErrNotImplemented(err error) bool

func IsErrValidation

func IsErrValidation(err error) bool

func OpenJson

func OpenJson(path string, data any) (err error)

func ParseUrl

func ParseUrl(u string) (*url.URL, error)

func SafeSliceAccess

func SafeSliceAccess(data interface{}, index int) (val reflect.Value)

func Sha256

func Sha256(s string) string

func StrToIDArr

func StrToIDArr(s string) (IDarr []uint)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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