Skip to content

Instantly share code, notes, and snippets.

@a-know

a-know/router.go Secret

Created October 27, 2018 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a-know/d7c302b476e0e61bf385746d86c9e743 to your computer and use it in GitHub Desktop.
Save a-know/d7c302b476e0e61bf385746d86c9e743 to your computer and use it in GitHub Desktop.
package main
import (
"net/http"
"github.com/go-chi/chi"
)
func init() {
r := chi.NewRouter()
r.Get("/heartbeat", handlers.HeartbeatHandler)
http.Handle("/", r)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment