feat: use go:embed to embed templates (#1756)
This commit is contained in:
16
tools/goctl/api/docgen/markdown.tpl
Normal file
16
tools/goctl/api/docgen/markdown.tpl
Normal file
@@ -0,0 +1,16 @@
|
||||
### {{.index}}. {{.routeComment}}
|
||||
|
||||
1. route definition
|
||||
|
||||
- Url: {{.uri}}
|
||||
- Method: {{.method}}
|
||||
- Request: {{.requestType}}
|
||||
- Response: {{.responseType}}
|
||||
|
||||
2. request definition
|
||||
|
||||
{{.requestContent}}
|
||||
|
||||
3. response definition
|
||||
|
||||
{{.responseContent}}
|
||||
Reference in New Issue
Block a user