func serve(r *chi.Mux, wg *sync.WaitGroup) {
	port := port()
	addr := fmt.Sprintf(":%d", port)
	err := http.ListenAndServe(addr, r)
	if err != nil {
		log.Fatalf("Error while serving http: %s", err.Error())
	}

	wg.Done()
}
// Serve the resources as defined by routes in `r`
Serve the resources as defined by routes in `r`
// Serve the resources as defined by routes in ` r `
func serve(r *chi.Mux, wg *sync.WaitGroup) {
	port := port()
	addr := fmt.Sprintf(":%d", port)
	err := http.ListenAndServe(addr, r)
	if err != nil {
		log.Fatalf("Error while serving http: %s", err.Error())
	}
	wg.Done()
}
func serve ( r * chi . Mux , wg * sync . WaitGroup ) { port := port ( ) addr := fmt . Sprintf ( " " , port ) err := http . ListenAndServe ( addr , r ) if err != nil { log . Fatalf ( " " , err . Error ( ) ) } wg . Done ( ) }
Serve the resources as defined by routes in `r`
Serve the resources as defined by routes in ` r `