filenametemplate

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package filenametemplate contains the code used to template names of goreleaser's packages and archives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(tmpl string, fields Fields) (string, error)

Apply applies the given fields to the given template and returns the evaluation and any error that might occur.

Types

type Fields

type Fields struct {
	Version     string
	Tag         string
	ProjectName string
	Env         map[string]string
	Os          string
	Arch        string
	Arm         string
	Binary      string
}

Fields contains all accepted fields in the template string

func NewFields

func NewFields(ctx *context.Context, replacements map[string]string, artifacts ...artifact.Artifact) Fields

NewFields returns a Fields instances filled with the data provided

Jump to

Keyboard shortcuts

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