{"repo":"appleboy/gofight","free":true,"listed":false,"github":"https://github.com/appleboy/gofight","clone":"git clone https://github.com/appleboy/gofight.git","description":"Testing API Handler written in Golang.","language":"Go","stars":445,"topics":["golang","testing-tools"],"license":"MIT","category":"dev-tools","readme_excerpt":"Gofight API Handler Testing for Golang Web framework. Support Framework [x] Http Handler Golang package http provides HTTP client and server implementations. [x] Gin [x] Echo support v3.0.0 up [x] Mux Install Download this package. To import this package, add the following line to your code: Usage The following is basic testing example. Main Program: Testing: Set Header You can add custom header via SetHeader func. 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. Set Query String Using SetQuery to generate raw data. or append exist query parameter. Set Cookie String Using SetCookie to generate raw data. Set JSON Struct Upload multiple file with absolute path and parameter The following is route using gin Write the testing: Upload multiple file with content []byte path and parameter Example Basic HTTP Router: example Gin Framework: example Echo Framework: example Mux Framework: example License Copyright 2019 Bo-Yi Wu @appleboy. Licensed under the MIT License.","default_branch":null,"files":null,"tree":[],"storefront":"/r/appleboy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/appleboy/gofight/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}