diff --git a/servicegen/tpl.go b/servicegen/tpl.go index a3117b4..b008bfc 100644 --- a/servicegen/tpl.go +++ b/servicegen/tpl.go @@ -8,7 +8,7 @@ import ( var ( apiTpl = CreateTpl("api.tpl") - apiPreTpl = CreateTpl("api_task.tpl") + apiPreTpl = CreateTpl("api_pre.tpl") apiTaskTpl = CreateTpl("api_task.tpl") apiTestTpl = CreateTpl("api_test.tpl") dbModelTpl = CreateTpl("db_model.tpl") diff --git a/servicegen/tpl/api_test.tpl b/servicegen/tpl/api_test.tpl index 9d966a7..418f3c5 100644 --- a/servicegen/tpl/api_test.tpl +++ b/servicegen/tpl/api_test.tpl @@ -1,7 +1,6 @@ package hasaki_{{.app_name}} import ( - "fmt" "log" "testing"