macro

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvtKeyValuePairJson

func ConvtKeyValuePairJson(m map[string]string) string

func ConvtKeyValuePairString

func ConvtKeyValuePairString(m map[string]string) string

func Do

func Do(err *error, fn func() (err error))

func EmptyUuid

func EmptyUuid(s *string)

func Eqaul

func Eqaul(a error, b ...error) bool

func ErrorCompose

func ErrorCompose(a, b error) error

func ErrorComposef

func ErrorComposef(a, b error, format string, args ...interface{}) error

func ErrorWithHandler

func ErrorWithHandler(err error, handler ...func(err error)) bool

func HasError

func HasError(err error) bool

func MapContain

func MapContain(m map[string]interface{}, key string) bool

func MapInt

func MapInt(m map[string]interface{}, key string) (int, bool)

func MapMap

func MapMap(m map[string]interface{}, key string) (map[string]interface{}, bool)

func MapString

func MapString(m map[string]interface{}, key string) (string, bool)

func MapValue

func MapValue(m map[string]interface{}, key string) interface{}

func NewUuid

func NewUuid() uuid.UUID

func NewUuidString

func NewUuidString() string

func Stack

func Stack(err error) string

func StringBuilder

func StringBuilder() (func(elems ...interface{}), func(sep string) string)

func TimeParse

func TimeParse(s string) time.Time

Types

type TestChapter

type TestChapter struct {
	Subject string
	Action  func() error
}

type TestScenarios

type TestScenarios []TestChapter

func (TestScenarios) Foreach

func (scenarios TestScenarios) Foreach(fn func(error))

Jump to

Keyboard shortcuts

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