Registry / utility / warnings-v0

warnings-v0

JSON →
library0.1.2gogounverified

Package warnings implements error handling with non-fatal errors (warnings) in Go.

go get gopkg.in/warnings.v0
INSTALL
IMPORT
SIG · WARNINGS-V0
W
warnings-v0
utilitygov0.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

warnings
gopkg.in/warnings.v0

Collect non-fatal warnings and handle them separately from fatal errors.

package main import ( "errors" "fmt" "gopkg.in/warnings.v0" ) func main() { w := warnings.Collector{} err := w.Collect(errors.New("warning: something non-fatal")) if err != nil { fmt.Println("Fatal error:", err) } if w.Err() != nil { fmt.Println("Collected warnings:", w.Err()) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
warnings-v0 — go get warnings-v0 · libregistry