Documentation ¶
Index ¶
- func Exists(path string) bool
- func GetSize(content io.Seeker) (int64, error)
- func IsDir(path string) bool
- func IsFile(path string) bool
- func WriteError(w http.ResponseWriter, err error) (int, error)
- func WriteSuccess(w http.ResponseWriter, path string) (int, error)
- type DataSet
- type JsonStruct
- type SimpleJsonParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteError ¶
func WriteError(w http.ResponseWriter, err error) (int, error)
func WriteSuccess ¶
func WriteSuccess(w http.ResponseWriter, path string) (int, error)
Types ¶
type DataSet ¶
type DataSet struct {
// contains filtered or unexported fields
}
进行数据集的操作处理
func NewDataSet ¶
type JsonStruct ¶
type JsonStruct struct { }
func NewJsonStruct ¶
func NewJsonStruct() *JsonStruct
func (*JsonStruct) Load ¶
func (jst *JsonStruct) Load(filename string, v interface{}) error
将内容为json格式的文件,读取并转为结构体对象
func (*JsonStruct) ParseBytes ¶
func (jst *JsonStruct) ParseBytes(read_bytes []byte, v interface{}) (err error)
将json字符串bytes转为结构体对象
func (*JsonStruct) ParseStr ¶
func (jst *JsonStruct) ParseStr(json_str string, v interface{}) (err error)
将json字符串str转为结构体对象
type SimpleJsonParser ¶
type SimpleJsonParser struct { }
func NewSimpleJsonParse ¶
func NewSimpleJsonParse() *SimpleJsonParser
func (*SimpleJsonParser) Parse ¶
func (sjp *SimpleJsonParser) Parse(json_datas []byte) (*simplejson.Json, error)
Click to show internal directories.
Click to hide internal directories.