Documentation ¶ Index ¶ func GetPosts(n int) (results []interface{}) func InsertIntoDB(atts []interface{}) func OpenConn() *sql.DB func TestEmptyDB() bool type Post Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetPosts ¶ func GetPosts(n int) (results []interface{}) func InsertIntoDB ¶ func InsertIntoDB(atts []interface{}) func OpenConn ¶ func OpenConn() *sql.DB func TestEmptyDB ¶ func TestEmptyDB() bool Types ¶ type Post ¶ type Post struct { Id int Title string Content string UserId int Published bool Created time.Time Modified time.Time } example model Source Files ¶ View all Source files model.go Click to show internal directories. Click to hide internal directories.