Help us shape the future of Go! Take the 2026 Go Developer Survey

name

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
}

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func NewPlugin

func NewPlugin() *Plugin

NewPlugin instantiate a Plugin instance.

func (*Plugin) Configure

func (p *Plugin) Configure(v *viper.Viper) error

func (*Plugin) Generate

func (p *Plugin) Generate(personaDirectory string) (plugin.Generated, error)

Generate a file in the bin plugin directory. Implements the Generator interface.

func (Plugin) Name

func (p Plugin) Name() string

Name return plugin name. Implements `plugin.Pluggable` interface.

func (Plugin) Render

func (p Plugin) Render(personaName, personaDirectory string) string

Render returns content rendered by the plugin. Implements `plugin.Renderable` interface.

func (Plugin) Setup

func (p Plugin) Setup(personaDirectory string) error

Setup allow the plugin to perform any require setup actions. Implements `plugin.Setuppable` interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL