Removed fileParams as the file content will be posted via postBody, fixed file upload issue

This commit is contained in:
Guo Huang
2016-04-19 11:46:57 -07:00
parent d0123f40b7
commit fe1afc35e6
7 changed files with 63 additions and 144 deletions

View File

@@ -104,6 +104,7 @@ public class GoClientCodegen extends DefaultCodegen implements CodegenConfig {
importMapping = new HashMap<String, String>();
importMapping.put("time.Time", "time");
importMapping.put("*os.File", "os");
importMapping.put("ioutil", "io/ioutil");
cliOptions.clear();
cliOptions.add(new CliOption(CodegenConstants.PACKAGE_NAME, "Go package name (convention: lowercase).")