util

package
v0.0.0-...-e25560c Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ReflectString = reflect.TypeOf("")
	ReflectInt    = reflect.TypeOf(0)
	ReflectBool   = reflect.TypeOf(false)
)

Functions

func ExecCmd

func ExecCmd(cmd string) ([]byte, error)

func GetAbsPath

func GetAbsPath(path string) (string, error)

func MayHave

func MayHave(m map[string]any, attrList map[string]any) error

func MustHave

func MustHave(m map[string]any, attrList map[string]any) error

Types

type ErrInvalid

type ErrInvalid struct {
	Attr string
}

func (ErrInvalid) Error

func (e ErrInvalid) Error() string

func (ErrInvalid) Is

func (e ErrInvalid) Is(err error) bool

type ErrLost

type ErrLost struct {
	Attr string
}

func (ErrLost) Error

func (e ErrLost) Error() string

func (ErrLost) Is

func (e ErrLost) Is(err error) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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