Skip to content

Latest commit

 

History

History
24 lines (12 loc) · 408 Bytes

README.md

File metadata and controls

24 lines (12 loc) · 408 Bytes

martini sample

setup db

sqlite3 todo.db

create table todo(id integer primary key autoincrement, content text);

insert into todo(id,content) values (1,'study English');

to start server

export GOPATH=`pwd`

go get github.com/go-martini/martini

go get github.com/mattn/go-sqlite3

go get github.com/martini-contrib/render

go get github.com/codegangsta/martini-contrib/binding

go run server.go