From 1e9d47665d05fba3c4090a06806bbcee247be832 Mon Sep 17 00:00:00 2001 From: Renato Monteiro <45536168+monteiro-renato@users.noreply.github.com> Date: Wed, 20 Nov 2024 08:39:14 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=96=20small=20fixes=20to=20extending?= =?UTF-8?q?=5Fcli=5Ffeatures=5Fand=5Fplugins.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugins/extending/extending_cli_features_and_plugins.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/book/src/plugins/extending/extending_cli_features_and_plugins.md b/docs/book/src/plugins/extending/extending_cli_features_and_plugins.md index e92a985a7f1..7b42abd6f8a 100644 --- a/docs/book/src/plugins/extending/extending_cli_features_and_plugins.md +++ b/docs/book/src/plugins/extending/extending_cli_features_and_plugins.md @@ -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}}