template

package
v0.0.0-...-070363a Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package template provides code to populate the `index.template.js` template.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(_ context.Context, c Config) error

Run reads a template file, populates it with the configured version and writes out the populated template to the generated filename.

Types

type Config

type Config struct {
	// TemplateFilename is the path to the file where the template is stored.
	TemplateFilename string
	// GeneratedFilename is the path where the generated file should be stored
	// after populating the template.
	GeneratedFilename string
	// Version is the version being released.
	Version string
}

Config represents the inputs needed to populate the template.

Jump to

Keyboard shortcuts

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