Documentation
¶
Overview ¶
加载json配置文件
no-watching
Index ¶
- func Init(path string)
- func LoadJson(path string, data interface{})
- type Loader
- func (l *Loader) Get(table string, row uint32, fieldname string) (interface{}, error)
- func (l *Loader) GetCorrelation(table string, row uint32, fieldname string) (interface{}, error)
- func (l *Loader) GetFloat64(data interface{}, err error) (float64, error)
- func (l *Loader) GetString(data interface{}, err error) (string, error)
- func (l *Loader) GetTableLen(table string) (int, error)
- func (l *Loader) GetTableRow(table string, row uint32) (interface{}, error)
- func (l *Loader) GetUint32(data interface{}, err error) (uint32, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Loader ¶
type Loader struct { }
func (*Loader) GetCorrelation ¶
获取关联配置数据 @params table 表名 @params rowname 行名 @params fieldname 列名(也就是相关联的表的主键)
func (*Loader) GetFloat64 ¶
数据类型转换
func (*Loader) GetTableLen ¶
获取表的长度 @params table 表名
func (*Loader) GetTableRow ¶
获取表的行数据 @params table 表名
Click to show internal directories.
Click to hide internal directories.