摘要: struct结构如下:package modelsimport ( "github.com/robfig/revel")type Post struct { id int title string}我在另一个包里面使用package controllersimport ( "blog/app/models" "fmt" "github.com/coopernurse/gorp" "github.com/robfig/revel")type Application struct { *revel.阅读全文
posted @ 2013-04-09 18:29 DavidHHuan 阅读(3140) 评论(0) 编辑