Skip to content
/ errx Public

An extension of Golang's error type that implements error tracking and encoding (kind & code).

License

Notifications You must be signed in to change notification settings

d2jvkpn/errx

Repository files navigation

errx

An extension of Golang's error type that implements error tracking and encoding (kind & code).

C01. structure

type ErrX struct {
	// internal data: error array
	errors []error

	// fields for identification and api response
	Kind string `json:"kind"`
	Code string `json:"code"`
	Msg  string `json:"msg"`

	// optinal tracer
	Caller string // fn::file::line
}

About

An extension of Golang's error type that implements error tracking and encoding (kind & code).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published