Skip to content

Commit

Permalink
📖 small fixes to extending_cli_features_and_plugins.md
Browse files Browse the repository at this point in the history
  • Loading branch information
monteiro-renato committed Nov 20, 2024
1 parent 558f151 commit 1e9d476
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ This library allows you to:
- Add [markers][markers-scaffold] to the scaffolded files.
- Specify templates for your scaffolds.

#### Example: Bollerplate
#### Example: Boilerplate

For instance, the go/v4 scaffolds the `cmd/go.mod` file by defining an object that [implements the machinery interface][machinery].
The `Template.SetTemplateDefaults`, the `raw template is set to the body:
For instance, the go/v4 scaffolds the `go.mod` file by defining an object that [implements the machinery interface][machinery].
The raw template is set to the `TemplateBody` field on the `Template.SetTemplateDefaults` method:

```go
{{#include ./../../../../../pkg/plugins/golang/v4/scaffolds/internal/templates/gomod.go}}
Expand Down

0 comments on commit 1e9d476

Please sign in to comment.