Skip to content

Instantly share code, notes, and snippets.

@tonespy
Created June 23, 2019 12:40
Show Gist options
  • Save tonespy/5956d1ea0fe816408d4a0c14f2dd4085 to your computer and use it in GitHub Desktop.
Save tonespy/5956d1ea0fe816408d4a0c14f2dd4085 to your computer and use it in GitHub Desktop.
Main file
func main() {
userRoutes := apis.GenerateUserRoutes()
router := router.NewRouter(userRoutes)
addr := ":8540"
log.Println("Listening on", addr)
log.Fatal(http.ListenAndServe(addr, router))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment