Documentation
¶
Index ¶
- func Cols(name string, rowIndex int) []string
- func Duration(name string, row, col interface{}, def ...time.Duration) (time.Duration, bool)
- func ExportConfigTable(buf []byte) []byte
- func FilterRows(name string, cols string, vals ...interface{}) []*tableRow
- func Float(name string, row, col interface{}, def ...float64) (float64, bool)
- func ForbidWords(msg string) string
- func Int(name string, row, col interface{}, def ...int64) (int64, bool)
- func IsPart(s string, match interface{}) bool
- func JSON(v interface{}) *jsonArg
- func LoadFile(path string, conf interface{}) error
- func LoadForbidWords(words []string)
- func LoadLocalTables(fileName string)
- func LoadTable(name string, buf []byte) error
- func NumRow(name string) int
- func ParseTime(s string) (time.Time, error)
- func RowId(n int) *tableRow
- func Rows(name string) []*tableRow
- func Scan(name string, row, colArgs interface{}, args ...interface{}) (int, error)
- func String(name string, row, col interface{}, def ...string) (string, bool)
- func Time(name string, row, col interface{}, def ...time.Time) (time.Time, bool)
- func ValidateConfigTable(buf []byte) error
- type Env
- type Scanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportConfigTable ¶ added in v1.8.20220415
导出JSON格式配置表
func FilterRows ¶ added in v1.4.11
过滤表格行 cols:多个列名。例如col1,col2,col3 cells:过滤的值,对应列
func ForbidWords ¶
func LoadForbidWords ¶
func LoadForbidWords(words []string)
func ValidateConfigTable ¶ added in v1.8.20220415
校验配置表数据格式有效性
Types ¶
Click to show internal directories.
Click to hide internal directories.