Documentation
¶
Index ¶
Constants ¶
View Source
const ( UnknownExt string = ".unknown" // input formats ExcelExt string = ".xlsx" CSVExt string = ".csv" XMLExt string = ".xml" YAMLExt string = ".yaml" // output formats, see https://protobuf.dev/programming-guides/techniques/#suffixes JSONExt string = ".json" BinExt string = ".binpb" TextExt string = ".txtpb" )
File format extension
Variables ¶
View Source
var OutputFormats = []Format{JSON, Bin, Text}
Functions ¶
func FilterInput ¶ added in v0.9.7
FilterInput checks if this input format need to be converted.
func Format2Ext ¶
func IsInputDocumentFormat ¶ added in v0.11.0
IsInputDocumentFormat checks whether the fmt belongs to input document formats, such as XML, YAML.
func IsInputFormat ¶ added in v0.9.10
IsInputFormat checks whether the fmt belongs to InputFormats, such as Excel, CSV, XML, YAML.
Types ¶
type Format ¶
type Format string
const ( UnknownFormat Format = "unknown" // input formats Excel Format = "xlsx" CSV Format = "csv" XML Format = "xml" YAML Format = "yaml" // output formats, see https://protobuf.dev/programming-guides/techniques/#suffixes JSON Format = "json" Bin Format = "binpb" Text Format = "txtpb" )
File format
func Ext2Format ¶
Click to show internal directories.
Click to hide internal directories.