tmpl

package
v0.88.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package tmpl provides templating utilities for goreleser

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Template

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

Template holds data that can be applied to a template string

func New

func New(ctx *context.Context) *Template

New Template

func (*Template) Apply

func (t *Template) Apply(s string) (string, error)

Apply applies the given string against the fields stored in the template.

func (*Template) WithArtifact

func (t *Template) WithArtifact(a artifact.Artifact, replacements map[string]string) *Template

WithArtifact populates fields from the artifact and replacements

Jump to

Keyboard shortcuts

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