Documentation ¶
Index ¶
- Constants
- Variables
- func DoMain(configpath string)
- func LoadAllFiles(basepath string, paths []string) []*dptxt.Document
- func LoadConfig(filename string, config *DustpanConfig) error
- func LoadFile(filename string, doc *dptxt.Document) error
- func WriteCsv(basepath string, config *DustpanConfig, docs []*dptxt.Document) error
- func WriteHtml(basepath string, config *DustpanConfig, docs []*dptxt.Document) error
- type ColumnConfig
- type CsvConfig
- type DustpanConfig
- type HtmlConfig
- type SortConfig
- type ValueError
Constants ¶
View Source
const ( ColumnTypeText = "text" ColumnTypeNumber = "number" // 符号付き整数 ColumnTypeDate = "date" ColumnTypeDeadline = "deadline" ColumnTypeLog = "log" )
Variables ¶
Functions ¶
func LoadConfig ¶
func LoadConfig(filename string, config *DustpanConfig) error
Types ¶
type ColumnConfig ¶
type DustpanConfig ¶
type DustpanConfig struct { SrcPath []string `json:"src"` Html HtmlConfig `json:"html"` Csv CsvConfig `json:"csv"` ColumnDefs []ColumnConfig `json:"columns"` SortOrder []SortConfig `json:"order"` }
func (*DustpanConfig) GetColumnDef ¶
func (config *DustpanConfig) GetColumnDef(name string) *ColumnConfig
type HtmlConfig ¶
type SortConfig ¶
type ValueError ¶
func NewValueError ¶
func NewValueError(filename string, linenum int, err error) *ValueError
func (*ValueError) Error ¶
func (ve *ValueError) Error() string
func (*ValueError) Unwrap ¶
func (ve *ValueError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.