package goinfo
import "github.com/lucor/goinfo"
Index ¶
- func Write(w io.Writer, reporters []Reporter, format Formatter) error
- type Formatter
- type Info
- type Reporter
Functions ¶
func Write ¶
Write the collected info by reporters to w using the specified format
Types ¶
type Formatter ¶
type Formatter interface { // Write writes the reports collected by reporters to io.Writer Write(io.Writer, []Reporter) error }
Formatter is the interface that wraps the Write method
type Info ¶
type Info map[string]interface{}
Info reprents the collected info
type Reporter ¶
type Reporter interface { // Summary returns the summary's report Summary() string // Info returns the collected info Info() (Info, error) }
Reporter is the interface that wraps the Summary and Info method methods along with the Errors interface
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
cmd | |
cmd/goinfo | |
format | |
report |
- Version
- v0.9.0 (latest)
- Published
- Feb 26, 2023
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- now –
Tools for package owners.