Package Usage: go: github.com/appleboy/gofight/v2
Package gofight offers simple API http handler testing for Golang framework.
Details about the gofight project are found in github page:
Installation:
Set Header: You can add custom header via SetHeader func.
Set Cookie: You can add custom cookie via SetCookie func.
Set query string: Using SetQuery to generate query string data.
POST FORM Data: Using SetForm to generate form data.
POST JSON Data: Using SetJSON to generate json data.
POST RAW Data: Using SetBody to generate raw data.
For more details, see the documentation and example.
4 versions
Latest release: over 5 years ago
155 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/appleboy/gofight/v2