Documentation
¶
Index ¶
- Constants
- func CreateFile(file string, s string) error
- func GetLocation() *time.Location
- func GetRand() *rand.Rand
- func GetReader(r io.Reader, enc Encoding) io.Reader
- func HumarizeNumber(s string) string
- func Now() time.Time
- func SetDatetimeFormat(s string)
- func SetDelimiter(s string) error
- func SetEncoding(s string) error
- func SetFormat(s string) error
- func SetLineBreak(s string) error
- func SetLocation(s string) error
- func SetNoHeader(b bool)
- func SetOut(s string) error
- func SetRepository(s string) error
- func SetSource(s string) error
- func SetStats(b bool)
- func SetWithoutHeader(b bool)
- func SetWithoutNull(b bool)
- func SetWriteDelimiter(s string) error
- func SetWriteEncoding(s string) error
- func ToStdout(s string) error
- func UnescapeString(s string) string
- func UpdateFile(file string, s string) error
- type Encoding
- type Flags
- type Format
- type LineBreak
Constants ¶
View Source
const ( CSV_EXT = ".csv" TSV_EXT = ".tsv" )
View Source
const UNDEF = -1
Variables ¶
This section is empty.
Functions ¶
func CreateFile ¶ added in v0.1.6
func GetLocation ¶
func HumarizeNumber ¶ added in v0.6.1
func SetDatetimeFormat ¶ added in v0.2.7
func SetDatetimeFormat(s string)
func SetDelimiter ¶
func SetEncoding ¶
func SetLineBreak ¶
func SetLocation ¶ added in v0.3.2
func SetNoHeader ¶
func SetNoHeader(b bool)
func SetRepository ¶
func SetWithoutHeader ¶
func SetWithoutHeader(b bool)
func SetWithoutNull ¶
func SetWithoutNull(b bool)
func SetWriteDelimiter ¶
func SetWriteEncoding ¶
func UnescapeString ¶ added in v0.1.5
func UpdateFile ¶ added in v0.1.6
Types ¶
type Flags ¶
type Flags struct { // Global Options Delimiter rune Encoding Encoding LineBreak LineBreak Location string Repository string Source string DatetimeFormat string NoHeader bool WithoutNull bool // Write Subcommand Options WriteEncoding Encoding OutFile string Format Format WriteDelimiter rune WithoutHeader bool Stats bool // Use in tests Now string }
Click to show internal directories.
Click to hide internal directories.