···165 return state, nil
166}
16700000168func (s *State) Favicon(w http.ResponseWriter, r *http.Request) {
169 w.Header().Set("Content-Type", "image/svg+xml")
170 w.Header().Set("Cache-Control", "public, max-age=31536000") // one year
···165 return state, nil
166}
167168+func (s *State) Close() error {
169+ // other close up logic goes here
170+ return s.db.Close()
171+}
172+173func (s *State) Favicon(w http.ResponseWriter, r *http.Request) {
174 w.Header().Set("Content-Type", "image/svg+xml")
175 w.Header().Set("Cache-Control", "public, max-age=31536000") // one year
+3
cmd/appview/main.go
···23 }
2425 state, err := state.Make(ctx, c)
0002627 if err != nil {
28 log.Fatal(err)