An open API service providing repository metadata for many open source software ecosystems.

Package Usage: go: github.com/mutility/diag

Package diag contains interfaces and utility functions to ease production of diagnostics. Implementations are suggested to provide at least the methods of diag.Interface, as it will be common for entry points to receive a diag.Interface. Additional methods will be leveraged where available. Typical use in a function that wants to provide diagnostics looks like this: It's also okay to accept a diag.Debugger, diag.Errorer, or diag.Warninger when Foo and what it calls will use only use a subset of the capabilities. New() enables a trivial implementation around existing io.Writers, such as os.Stdout, os.Stderr, etc. This is useful for main or testing packages.
3 versions
Latest release: about 4 years ago
1 dependent package

View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/github.com/mutility/diag

View more repository details: http://repos.ecosyste.ms/hosts/GitHub/repositories/mutility%2Fdiag

Dependent Repos 1

mutility/coverpkg
Code and action for calculating cross-package go test coverage

Size: 166 KB - Last synced: 11 months ago - Pushed: over 1 year ago