摘要: here is the code of a structtype Post struct { Id int `db:"id"` Title string `db:"title"` Content string `db:"content"` Create_time int64 `db:"create_time"`}func (p Post) AttrCreatetime() time.Time { return time.Unix(p.Create_time, 0)} How to call the function阅读全文
posted @ 2013-04-25 11:59 DavidHHuan 阅读(483) 评论(0) 编辑