-
Notifications
You must be signed in to change notification settings - Fork 2
/
args.go
27 lines (25 loc) · 703 Bytes
/
args.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package main
//Args struct
type Args struct {
FileName string
Sep string
SkipSymbol []string //ignore line with specified prefix
SkipNum int //Number of lines that should be skipped
ShowNum []int //columns that should be displayed
HideNum []int //columns that should be hidden
Header int //header display mode
Transpose bool
NLine int //number of lines that should be displayed
Strict bool // check for missing data
}
func (args *Args) setDefault() {
args.Sep = ""
args.SkipSymbol = []string{}
args.SkipNum = 0
args.ShowNum = []int{}
args.HideNum = []int{}
args.Header = 0
args.Transpose = false
args.NLine = 0
args.Strict = false
}