Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONRouter ¶
JSONRouter is router for JSON files.
func (*JSONRouter) Add ¶
func (r *JSONRouter) Add(path string, file string) error
Add path that returns data from JSON file. Retruns an error.
func (*JSONRouter) ServeHTTP ¶
func (r *JSONRouter) ServeHTTP(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.