types.go 318 B

12345678910111213
  1. package server
  2. import "net/http"
  3. type Server struct {
  4. Host string `json:"srvhost"`
  5. Port string `json:"srvport"`
  6. NotesDir string `json:"notes_directory"`
  7. Routes map[string]string `json:"routes"`
  8. Err error
  9. }
  10. type hfunc func(w http.ResponseWriter, r *http.Request)