add sh script for go, add binary mapping for go, fix format

This commit is contained in:
wing328
2016-01-22 17:21:51 +08:00
parent 6b2f15b2cf
commit 25b60a194b
4 changed files with 57 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ public class GoClientCodegen extends DefaultCodegen implements CodegenConfig {
"byte")
);
instantiationTypes.clear();
instantiationTypes.clear();
/*instantiationTypes.put("array", "GoArray");
instantiationTypes.put("map", "GoMap");*/
@@ -87,6 +87,9 @@ public class GoClientCodegen extends DefaultCodegen implements CodegenConfig {
typeMapping.put("password", "string");
typeMapping.put("File", "*os.File");
typeMapping.put("file", "*os.File");
// map binary to string as a workaround
// the correct solution is to use []byte
typeMapping.put("binary", "string");
importMapping = new HashMap<String, String>();
importMapping.put("time.Time", "time");