api/helpers.go
Function LoadJSONPayload
has 5 return statements (exceeds 4 allowed). Open
Open
func LoadJSONPayload(payloadStruct interface{}, c echo.Context, logger zap.Logger) error {
log.D(logger, "Loading payload...")
data, err := GetRequestBody(c)
if err != nil {
Your code does not pass gofmt in 4 places. Go fmt your code! Open
Open
// khan
- Exclude checks