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 @@ -184,10 +184,10 @@ These utilities allow you to:
184184### Example
185185
186186If you need to insert custom content into a scaffolded file,
187- you can use the ` Insert ` function provided by the plugin utilities:
187+ you can use the ` InsertCode ` function provided by the plugin utilities:
188188
189189``` go
190- pluginutil.Insert (file, location, content )
190+ pluginutil.InsertCode (filename, target, code )
191191```
192192
193193This approach enables you to extend and modify the generated
@@ -402,7 +402,7 @@ creating features or plugins that can rely on this information.
402402[ plugin-sub-command ] : https://pkg.go.dev/sigs.k8s.io/kubebuilder/v4/pkg/plugin#Subcommand
403403[ plugin-update-meta ] : https://pkg.go.dev/sigs.k8s.io/kubebuilder/v4/pkg/plugin#UpdatesMetadata
404404[ markers-scaffold ] : ./../../reference/markers/scaffold.md
405- [ kb-utils ] : ./../../../../.. /pkg/plugin/util/util.go
405+ [ kb-utils ] : https://github.com/kubernetes-sigs/kubebuilder/blob/book-v4 /pkg/plugin/util/util.go
406406[ project-file-config ] : ./../../reference/project-config.md
407407[ cli ] : ./../../../../../pkg/cli
408408[ kb-go-plugin ] : ./../../../../../pkg/plugins/golang/v4
You can’t perform that action at this time.
0 commit comments