mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-14 02:10:00 +08:00
feat: use go:embed to embed templates (#1756)
This commit is contained in:
9
tools/goctl/api/javagen/getset.tpl
Normal file
9
tools/goctl/api/javagen/getset.tpl
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
{{.indent}}{{.decorator}}
|
||||
{{.indent}}public {{.returnType}} get{{.property}}() {
|
||||
{{.indent}} return this.{{.tagValue}};
|
||||
{{.indent}}}
|
||||
|
||||
{{.indent}}public void set{{.property}}({{.type}} {{.propertyValue}}) {
|
||||
{{.indent}} this.{{.tagValue}} = {{.propertyValue}};
|
||||
{{.indent}}}
|
||||
Reference in New Issue
Block a user