File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
docs/book/src/plugins/extending Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -120,10 +120,10 @@ This library allows you to:
120
120
- Add [ markers] [ markers-scaffold ] to the scaffolded files.
121
121
- Specify templates for your scaffolds.
122
122
123
- #### Example: Bollerplate
123
+ #### Example: Boilerplate
124
124
125
- For instance, the go/v4 scaffolds the ` cmd/ go.mod` file by defining an object that [ implements the machinery interface] [ machinery ] .
126
- The ` Template.SetTemplateDefaults ` , the ` raw template is set to the body :
125
+ For instance, the go/v4 scaffolds the ` go.mod ` file by defining an object that [ implements the machinery interface] [ machinery ] .
126
+ The raw template is set to the ` TemplateBody ` field on the ` Template.SetTemplateDefaults ` method :
127
127
128
128
``` go
129
129
{{#include ./../../../../../pkg/plugins/golang/v4/scaffolds/internal/templates/gomod.go }}
You can’t perform that action at this time.
0 commit comments