Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GofmtReadWriter ¶
func GofmtReadWriter(rw io.ReadWriter) (io.ReadWriter, error)
GofmtReadWriter formats an io.ReadWriter, such as an *os.File.
Types ¶
type Func ¶
Func is a function which defines plugin behavior, and is provided a pointer to collector.Data.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) Init ¶
Init is called by Plugin code and is provided a PluginFunc from the caller to handle the input Data (read from stdin).
func (*Plugin) OutputTemplate ¶
OutputTemplate executes a text template using the provided data and writes it to the destination io.Writer.
Click to show internal directories.
Click to hide internal directories.