Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wing328 opened this issue Oct 13, 2017 · 1 comment
Closed

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

wing328 opened this issue Oct 13, 2017 · 1 comment

Comments

@wing328
Copy link
Contributor

wing328 commented Oct 13, 2017

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.

@wing328
Copy link
Contributor Author

wing328 commented Oct 14, 2017

Duplicated: #3518

@wing328 wing328 closed this as completed Oct 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant