Skip to content

[Go] Better code format for Go API client #6671

@wing328

Description

@wing328
Description

Running gofmt -d * under samples/client/petstore/go/go-petstore will result in a lot of diff showing how the code should have been formatted in a better way, e.g.

 	// to determine the Content-Type header
-	localVarHttpContentTypes := []string{  }
+	localVarHttpContentTypes := []string{}
Swagger-codegen version

Latest master

Related issues/PRs

#6669

Suggest a fix/enhancement

If anyone has time to help improve the code format, the Go template (https://github.com/swagger-api/swagger-codegen/tree/master/modules/swagger-codegen/src/main/resources/go) is a good starting point.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions