Documentation ¶
Index ¶
Constants ¶
View Source
const Dir = "./data"
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(res http.ResponseWriter, req *http.Request)
Get function the data in a JSON format
func GetCsv ¶
func GetCsv(res http.ResponseWriter, req *http.Request)
GetCSV function returns the CSV file the the respective route
func GetJson ¶
func GetJson(res http.ResponseWriter, req *http.Request)
GetJson function returns the JSON file in the respective route
func HandleResquests ¶
func HandleResquests()
HandleRequest function handles the routes of the application using the github.com/gorilla/mux package
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.