handler.go 118 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 11 12 13 14 package main import ( "gopkg.in/mgo.v2" ) type ( Handler struct { DB *mgo.Session } ) const ( Key = "secret" )