Documentation ¶
Index ¶
Constants ¶
View Source
const VERSION = "0.12.0-dev"
VERSION of csvtk
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "csvtk", Short: "A cross-platform, efficient and practical CSV/TSV toolkit", Long: fmt.Sprintf(`A cross-platform, efficient and practical CSV/TSV toolkit Version: %s Author: Wei Shen <shenwei356@gmail.com> Documents : http://shenwei356.github.io/csvtk Source code: https://github.com/shenwei356/csvtk Attention: 1. The CSV parser requires all the lines have same number of fields/columns. Even lines with spaces will cause error. 2. By default, csvtk thinks your files have header row, if not, switch flag "-H" on. 3. Column names better be unique. 4. By default, lines starting with "#" will be ignored, if the header row starts with "#", please assign flag "-C" another rare symbol, e.g. '$'. 5. By default, csvtk handles CSV files, use flag "-t" for tab-delimited files. 6. If " exists in tab-delimited files, use flag "-l". `, VERSION), }
RootCmd represents the base command when called without any subcommands
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func NewCSVWriterChanByConfig ¶
NewCSVWriterChanByConfig returns a chanel which you can send record to write
Types ¶
type CSVReader ¶
type CSVReader struct { Reader *multicorecsv.Reader Ch chan CSVRecordsChunk // contains filtered or unexported fields }
CSVReader is
func NewCSVReader ¶
NewCSVReader is
type CSVRecordsChunk ¶
CSVRecordsChunk is chunk of CSV records
Source Files ¶
- box.go
- collapse.go
- csv.go
- csv2md.go
- csv2tab.go
- cut.go
- filter.go
- filter2.go
- freq.go
- gather.go
- genautocomplete.go
- grep.go
- head.go
- header.go
- helper.go
- hist.go
- inter.go
- join.go
- line.go
- logging.go
- mutate.go
- mutate2.go
- plot.go
- pretty.go
- rename.go
- rename2.go
- replace.go
- root.go
- sample.go
- sort.go
- space2tab.go
- split.go
- splitxlsx.go
- stat.go
- stat2.go
- tab2csv.go
- transpose.go
- uniq.go
- version.go
- xlsx2csv.go
Click to show internal directories.
Click to hide internal directories.