A simple way of creating efficient HTTP APIs in golang using conventions over configuration.
To install govalin run:
go get -u github.com/pkkummermo/govalin
func main() {
govalin.New().
Get("/test", func(call *govalin.Call) {
call.Text("Hello world")
}).
Start(7070)
}
I love how fast and efficient go is. What I don't like, is how it doesn't create an easy way of creating HTTP APIs. Govalin focuses on pleasing those who want to create APIs without too much hassle, with a lean simple API.
Inspired by simple libraries and frameworks such as Javalin, I wanted to see if we could port the simplicity to golang.