diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/GoClientCodegen.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/GoClientCodegen.java
index 9525672f86e..cdf2d683c4d 100644
--- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/GoClientCodegen.java
+++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/GoClientCodegen.java
@@ -135,6 +135,7 @@ public class GoClientCodegen extends DefaultCodegen implements CodegenConfig {
supportingFiles.add(new SupportingFile("gitignore.mustache", "", ".gitignore"));
supportingFiles.add(new SupportingFile("configuration.mustache", "", "configuration.go"));
supportingFiles.add(new SupportingFile("api_client.mustache", "", "api_client.go"));
+ supportingFiles.add(new SupportingFile("pom.mustache", "", "pom.xml"));
}
@Override
diff --git a/modules/swagger-codegen/src/main/resources/go/pom.mustache b/modules/swagger-codegen/src/main/resources/go/pom.mustache
new file mode 100644
index 00000000000..5cfbc0428c3
--- /dev/null
+++ b/modules/swagger-codegen/src/main/resources/go/pom.mustache
@@ -0,0 +1,75 @@
+
+ 4.0.0
+ com.wordnik
+ Go{{packageName}}
+ pom
+ {{packageVersion}}
+ Go{{packageName}}
+
+
+
+ maven-dependency-plugin
+
+
+ package
+
+ copy-dependencies
+
+
+ ${project.build.directory}
+
+
+
+
+
+ org.codehaus.mojo
+ exec-maven-plugin
+ 1.2.1
+
+
+ go-get-testify
+ pre-integration-test
+
+ exec
+
+
+ go
+
+ get
+ github.com/stretchr/testify/assert
+
+
+
+
+ go-get-sling
+ pre-integration-test
+
+ exec
+
+
+ go
+
+ get
+ github.com/dghubble/sling
+
+
+
+
+ go-test
+ integration-test
+
+ exec
+
+
+ go
+
+ test
+ -v
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/samples/client/petstore/go/pet_api_test.go b/samples/client/petstore/go/pet_api_test.go
index 4255a81a119..c9a32576448 100644
--- a/samples/client/petstore/go/pet_api_test.go
+++ b/samples/client/petstore/go/pet_api_test.go
@@ -1,6 +1,7 @@
package swagger
import (
+ sw "./swagger"
"github.com/stretchr/testify/assert"
"testing"
)
@@ -19,7 +20,7 @@ func TestAddPet(t *testing.T) {
}
func TestGetPetById(t *testing.T) {
- assert := assert.New(t)
+ //assert := assert.New(t)
s := NewPetApi()
resp, err := s.GetPetById(12830)
diff --git a/samples/client/petstore/go/pom.xml b/samples/client/petstore/go/pom.xml
new file mode 100644
index 00000000000..50bfe7f14f8
--- /dev/null
+++ b/samples/client/petstore/go/pom.xml
@@ -0,0 +1,75 @@
+
+ 4.0.0
+ com.wordnik
+ Goswagger
+ pom
+ 1.0.0
+ Goswagger
+
+
+
+ maven-dependency-plugin
+
+
+ package
+
+ copy-dependencies
+
+
+ ${project.build.directory}
+
+
+
+
+
+ org.codehaus.mojo
+ exec-maven-plugin
+ 1.2.1
+
+
+ go-get-testify
+ pre-integration-test
+
+ exec
+
+
+ go
+
+ get
+ github.com/stretchr/testify/assert
+
+
+
+
+ go-get-sling
+ pre-integration-test
+
+ exec
+
+
+ go
+
+ get
+ github.com/dghubble/sling
+
+
+
+
+ go-test
+ integration-test
+
+ exec
+
+
+ go
+
+ test
+ -v
+
+
+
+
+
+
+
+
\ No newline at end of file