goinfo – github.com/lucor/goinfo Index | Files | Directories

package goinfo

import "github.com/lucor/goinfo"

Index

Functions

func Write

func Write(w io.Writer, reporters []Reporter, format Formatter) error

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

goinfo.go

Directories

PathSynopsis
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.