Skip to content

Commit a8273b9

Browse files
committed
changed code to use pacageVersion, removed unneeded comments
1 parent 5fad90c commit a8273b9

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/GoClientCodegen.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,11 @@ public String modelDocFileFolder() {
283283

284284
@Override
285285
public String toModelDocFilename(String name) {
286-
//unable to use model file name because the mustache template does not have the model file name variable (python has the same issue)
287-
//return toModelFilename(name);
288286
return toModelName(name);
289287
}
290288

291289
@Override
292290
public String toApiDocFilename(String name) {
293-
//unable to use api file name because the mustache template does not have the api file name variable
294-
//return toApiFilename(name);
295291
return toApiName(name);
296292
}
297293

modules/swagger-codegen/src/main/resources/go/README.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client.
99

1010
- API version: {{appVersion}}
11-
- Package version: {{artifactVersion}}
11+
- Package version: {{packageVersion}}
1212
- Build date: {{generatedDate}}
1313
- Build package: {{generatorClass}}
1414
{{#infoUrl}}

samples/client/petstore/go/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ This is a sample server Petstore server. You can find out more about Swagger at
66
This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client.
77

88
- API version: 1.0.0
9-
- Package version:
10-
- Build date: 2016-04-14T14:05:06.510-07:00
9+
- Package version: 1.0.0
10+
- Build date: 2016-04-16T15:44:50.329-07:00
1111
- Build package: class io.swagger.codegen.languages.GoClientCodegen
1212

1313
## Installation

0 commit comments

Comments
 (0)