func startServer(server string, store *datastore.Store) error {
	log.Println("Server started on at: ", server)

	// create http routes & database middleware
	APIrouter := setupRoutes(store)

	// start listening for the client connections
	err := http.ListenAndServe(server, APIrouter)
	if err != nil {

		fmt.Println(err)
		return err
	}

	return nil
}
/**
 * Starts the HTTP server.
 */
Starts the HTTP server.
/ ** * Starts the HTTP server . * /
func startServer(server string, store *datastore.Store) error {
	log.Println("Server started on at: ", server)
	APIrouter := setupRoutes(store)
	err := http.ListenAndServe(server, APIrouter)
	if err != nil {
		fmt.Println(err)
		return err
	}
	return nil
}
func startServer ( server string , store * datastore . Store ) error { log . Println ( " " , server ) APIrouter := setupRoutes ( store ) err := http . ListenAndServe ( server , APIrouter ) if err != nil { fmt . Println ( err ) return err } return nil }
Starts the HTTP server.
Starts the HTTP server .
// create http routes & database middleware // start listening for the client connections