Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InferFields ¶
InferFields takes a struct type, and converts it into a set of fields to be used in a schema. This function will panic if t is not a struct type or a pointer to a struct
func ParseValue ¶
ParseValue parses a string as the provided type
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader converts logfmt data to json
type Schema ¶
Schema describes a set of fields and their types
func (*Schema) Set ¶
Set implements flag.Value and allows expects fields with the following syntax name:type (see ParseType for valid types)
Click to show internal directories.
Click to hide internal directories.