{"modulePath":"github.com/codeactual/gomodfuzz","version":"v0.1.7","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Functions\n\n```go\nfunc Append(errs *[]error, err error) bool\n```\n\n```go\nfunc WriteErrList(w io.Writer, errs ...error)\n```\n\n## Types\n\n```go\ntype Config struct {\n\t// RuntimeFrames is true if stack traces should retain frames from the runtime package.\n\tRuntimeFrames bool\n\n\t// TestingFrames is true if stack traces should retain frames from the testing package.\n\tTestingFrames bool\n\n\t// EventLoc is true if Event.Loc should be populated.\n\tEventLoc bool\n\n\t// Stack is true if Error.Stack should be populated.\n\tStack bool\n\n\t// Cause is true if Error.Cause should be populated and all Error.Msg values should be restored\n\t// to their original values (without messages of prior causes appended).\n\tCause bool\n}\n```\n\n```go\nfunc DefaultConfig() Config\n```\n\n```go\ntype Error struct {\n\t// Msg is message from the topmost error.\n\tMsg string\n\n\t// Loc is the error creation site, if available (e.g. from pkg/errors).\n\tLoc Location\n\n\t// Stack includes locations leading to, but excluding, Error.Loc, if available (e.g. from pkg/errors).\n\tStack []Location `json:\",omitempty\"`\n\n\t// Cause includes the errors leading to, but excluding, this Error, if available (e.g. from pkg/errors).\n\tCause []Error `json:\",omitempty\"`\n}\n```\n\n```go\ntype Event struct {\n\t// Loc is the event creation site.\n\tLoc Location\n\n\t// Errors holds one or more errors collected at the event creation site.\n\tErrors []Error\n}\n```\nEvent aims to provide error detail for inclusion in a structured log.\n\nIt omits a time value, assuming the structured logger will include it.\n\n```go\nfunc NewConfiguredEvent(config Config, errs ...error) (*Event, error)\n```\n\n```go\nfunc NewEvent(errs ...error) (*Event, error)\n```\n\n```go\ntype Location struct {\n\t// File is an absolute path or relative path from GOROOT/GOPATH.\n\tFile string\n\n\tFunc string\n\tLine string\n\tPkg  string\n}\n```\n\n","path":"github.com/codeactual/gomodfuzz/internal/cage/errors","name":"errors","synopsis":"","isRedistributable":true}
