Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

期待将goctl对应API的config模版使用.tpl单独配置,形成统一风格 #2216

Closed
jsonMark opened this issue Aug 1, 2022 · 0 comments · Fixed by #2235
Closed

期待将goctl对应API的config模版使用.tpl单独配置,形成统一风格 #2216

jsonMark opened this issue Aug 1, 2022 · 0 comments · Fixed by #2235
Assignees

Comments

@jsonMark
Copy link
Contributor

jsonMark commented Aug 1, 2022

现有位置:tools/goctl/api/gogen/genconfig.go

	configTemplate = `package config

import {{.authImport}}

type Config struct {
	rest.RestConf
	{{.auth}}
	{{.jwtTrans}}
}
`

期望目标:
tools/goctl/api/gogen/genconfig.go

//go:embed config.tpl
var  configTemplate string
kevwan added a commit to kevwan/go-zero that referenced this issue Aug 6, 2022
@kevwan kevwan mentioned this issue Aug 6, 2022
kevwan added a commit that referenced this issue Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants