API ZeroHero
This is a simple example we did at an online event for community developers. A rEST API was created from scratch live 😍. Cool, huh ? 🇧🇷
All work can be found at:
This project is purely didactic and practical and was developed for the Bootcamp event, feel free to send a Pull Request 😍.
ZeroHero is an api that loads a base with superheroes and allows searches by biography, powerstats, connections , image, work and appearance.
mux := http.NewServeMux()
mux.HandleFunc("/", Service)
handler := cors.Default().Handler(mux)
s := &http.Server{
Addr: "0.0.0.0:8080",
Handler: handler,
}
log.Fatal(s.ListenAndServe())
.....