+4
appview/db/db.go
+4
appview/db/db.go
+5
appview/state/state.go
+5
appview/state/state.go
···
165
165
return state, nil
166
166
}
167
167
168
+
func (s *State) Close() error {
169
+
// other close up logic goes here
170
+
return s.db.Close()
171
+
}
172
+
168
173
func (s *State) Favicon(w http.ResponseWriter, r *http.Request) {
169
174
w.Header().Set("Content-Type", "image/svg+xml")
170
175
w.Header().Set("Cache-Control", "public, max-age=31536000") // one year