Documentation ¶
Overview ¶
Package csvinfer guesses the types of CSV columns and uses these to generate a CSVProtoMapping object that in turn may be used to generate a .proto definition and CSV-to-proto parser.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InferProto ¶
func InferProto(csvLines string, opts *recordinfer.Options) (*recordinfer.InferredProto, error)
InferProto returns a guess at the schema of a provided CSV sample. The input may be a full CSV file, but users should note that values are kept in memory during inference.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.