Args struct
| 2 | |
| 3 | // Args struct |
| 4 | type Args struct { |
| 5 | FileName string |
| 6 | Sep string |
| 7 | SkipSymbol []string //ignore line with specified prefix |
| 8 | SkipNum int //Number of lines that should be skipped |
| 9 | ShowNum []int //columns that should be displayed |
| 10 | HideNum []int //columns that should be hidden |
| 11 | Header int //header display mode |
| 12 | NLine int //number of lines that should be displayed |
| 13 | Strict bool // check for missing data |
| 14 | AsyncLoad bool // enable async loading for progressive rendering |
| 15 | MemoryMB int // Memory limit in MB (0 = unlimited/default, >0 = custom limit) |
| 16 | } |
| 17 | |
| 18 | func (args *Args) setDefault() { |
| 19 | args.Sep = "" |
nothing calls this directly
no outgoing calls
no test coverage detected