These are chat archives for gin-gonic/gin
Gin is a web framework written in Golang. It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
Hello everyone! I need help. How to write tests (with default go test package) for testing web api written with Gin. I googled examples, but didn’t find anything.
In other web api test examples I see that first step is
server = httptest.NewServer(whatToPassHere???)
P.S. I’m go_newbie & doing first steps.
func App() *gin.Enginewhere you will set up Routes, Db session etc..
main()and in your unittests