utils

package
v0.0.0-...-d539b93 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJsonField

func GetJsonField(j []byte, path string) (val reflect.Value, err error)

func KeyGen

func KeyGen(args ...any) string

func WithRecover

func WithRecover[F WrappedFunc](f F) (err error)

Types

type PathError

type PathError struct {
	// contains filtered or unexported fields
}

func (*PathError) Error

func (e *PathError) Error() string

type WrappedFunc

type WrappedFunc interface {
	~func()
}

type WrappedPanic

type WrappedPanic struct {
	// contains filtered or unexported fields
}

func (*WrappedPanic) Error

func (e *WrappedPanic) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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