Documentation ¶ Index ¶ func GetFarmByID(w http.ResponseWriter, r *http.Request) func GetFarms(w http.ResponseWriter, r *http.Request) type Farm Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetFarmByID ¶ func GetFarmByID(w http.ResponseWriter, r *http.Request) func GetFarms ¶ func GetFarms(w http.ResponseWriter, r *http.Request) Types ¶ type Farm ¶ type Farm struct { ID int `json:"id"` Name string `json:"name"` Location string `json:"location"` DateEstablished string `json:"date_established"` Latitude string `json:"latitude"` Longitude string `json:"longitude"` } Source Files ¶ View all Source files farm_handler.go Click to show internal directories. Click to hide internal directories.