Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Filling ¶
func Filling(data interface{}, model interface{}) error
Filling filling a model from submitted data data 提交过来的数据结构体 model 定义表模型的数据结构体 相当于是在合并两个结构体(data 必须是 model 的子集)
func JsonDecode ¶
JsonEncode decode json bytes to data. use it instead of json.Unmarshal
func JsonEncode ¶
JsonEncode encode data to json bytes. use it instead of json.Marshal
func NewRedisPool ¶
create new redis pool @see https://git-books.github.io/books/go-web-programme/?p=05.6.md
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.