golang

package
v0.0.0-...-2a0a49f Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: BSD-4-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Code template for the Golang-Embed renderer
	EmbedText = `` /* 743-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func DefaultArgs

func DefaultArgs(input, generator string) []string

DefaultArgs returns a set of default arguments for the rendered template output

Types

type Embed

type Embed map[string]string

Embed is a code renderer using the internal fields as template variables.

func New

func New(pkg, input, generator string) Embed

New returns a new Embed instance with minimal arguments for the rendered template.

func NewArgs

func NewArgs(pkg, generator string, args ...string) Embed

New returns a new Embed instance with the given template properties defined.

func (Embed) RenderBuildInfo

func (e Embed) RenderBuildInfo(_ *buildinfo.BuildInfo) ([]byte, error)

RenderBuildInfo implements the renderer.BuildRenderer interface

func (Embed) String

func (e Embed) String() string

String implements the fmt.Stringer interface

Jump to

Keyboard shortcuts

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