format coding style (#905)

master
Kevin Wan 3 years ago committed by GitHub
parent 33f87cf1f0
commit 00c5734021
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -45,6 +45,7 @@ func genMain(dir, rootPkg string, cfg *config.Config, api *spec.ApiSpec) error {
if err != nil {
return err
}
configName := filename
if strings.HasSuffix(filename, "-api") {
filename = strings.ReplaceAll(filename, "-api", "")
@ -60,7 +61,7 @@ func genMain(dir, rootPkg string, cfg *config.Config, api *spec.ApiSpec) error {
builtinTemplate: mainTemplate,
data: map[string]string{
"importPackages": genMainImports(rootPkg),
"serviceName": configName,
"serviceName": configName,
},
})
}

Loading…
Cancel
Save