Documentation ¶
Index ¶
- Constants
- func Exists[K comparable, V any](m map[K]V, v K) bool
- func FilterByPattern(conf cfg.Config, input io.Reader) (io.Reader, error)
- func PrepareColumnVars(columns string, data *Tabdata) ([]int, error)
- func PrepareColumns(conf *cfg.Config, data *Tabdata) error
- func PrepareSortColumns(conf *cfg.Config, data *Tabdata) error
- func PrepareTransposerColumns(conf *cfg.Config, data *Tabdata) error
- func ProcessFiles(conf *cfg.Config, args []string) error
- func ValidateConsistency(data *Tabdata) error
- type Tabdata
Constants ¶
View Source
const RWRR = 0755
Variables ¶
This section is empty.
Functions ¶
func Exists ¶ added in v1.2.0
func Exists[K comparable, V any](m map[K]V, v K) bool
generic map.Exists(key)
func FilterByPattern ¶ added in v1.2.0
func PrepareColumnVars ¶ added in v1.3.0
func PrepareColumns ¶
parse columns list given with -c, modifies config.UseColumns based on eventually given regex. This is an output filter, because -cN,N,... is being applied AFTER processing of the input data.
func PrepareSortColumns ¶ added in v1.3.1
output option, prepare -k1,2 sort fields
func PrepareTransposerColumns ¶ added in v1.3.0
Same thing as above but for -T option, which is an input option, because transposers are being applied before output.
func ValidateConsistency ¶ added in v1.2.2
validate the consitency of parsed data
Types ¶
type Tabdata ¶
type Tabdata struct {
// contains filtered or unexported fields
}
contains a whole parsed table
func FilterByFields ¶ added in v1.2.0
* Filter parsed data by fields. The filter is positive, so if one or * more filters match on a row, it will be kept, otherwise it will be * excluded.
func PostProcess ¶ added in v1.3.0
func TransposeFields ¶ added in v1.3.0
* Transpose fields using search/replace regexp.
func (*Tabdata) CloneEmpty ¶ added in v1.2.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.