Go backend for tracking results from conway game of life soup search.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.go 357B

1234567891011121314151617181920
  1. package main
  2. import (
  3. "net/http"
  4. "github.com/gorilla/mux"
  5. )
  6. func main() {
  7. // Create mux handler
  8. r := mux.NewRouter()
  9. r.HandleFunc("/census/{family}/{genus}/{species}", GetSpecies)
  10. r.HandleFunc("/census/{family}/{genus}", GetGenus)
  11. r.HandleFunc("/census/{family}", GetFamily)
  12. //r.HandleFunc("/census", Cenus)
  13. http.ListenAndServe(":8080", r)
  14. }