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

scaffold

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package scaffold contains libraries for scaffolding code to use with controller-runtime

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scaffold

type Scaffold struct {
	// BoilerplatePath is the path to the boilerplate file
	BoilerplatePath string

	// Boilerplate is the contents of the boilerplate file for code generation
	Boilerplate string

	BoilerplateOptional bool

	// Project is the project
	Project input.ProjectFile

	ProjectOptional bool

	// ProjectPath is the relative path to the project root
	ProjectPath string

	GetWriter func(path string) (io.Writer, error)
}

Scaffold writes Templates to scaffold new files

func (*Scaffold) Execute

func (s *Scaffold) Execute(options input.Options, files ...input.File) error

Execute executes scaffolding the Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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