format

package
v0.9.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2022 License: MIT Imports: 1 Imported by: 5

Documentation

Index

Constants

View Source
const (
	JSONExt  string = ".json"
	WireExt  string = ".wire"
	TextExt  string = ".text"
	ExcelExt string = ".xlsx"
	CSVExt   string = ".csv"
	XMLExt   string = ".xml"
)

File format extension

Variables

This section is empty.

Functions

func Format2Ext

func Format2Ext(fmt Format) (string, error)

func IsValidInput added in v0.9.6

func IsValidInput(fmt Format) bool

Types

type Format

type Format int
const (
	UnknownFormat Format = iota
	JSON
	Wire
	Text
	Excel
	CSV
	XML
)

File format

func Ext2Format

func Ext2Format(ext string) (Format, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL