tasktemplate

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: BSD-2-Clause Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package tasktemplate holds the built-in default title/body templates for the emitted go-version task, authored as embedded markdown files. A deployment overrides them via the TASK_TITLE_TEMPLATE / TASK_BODY_TEMPLATE envs; these defaults are deployment-agnostic so the watcher is reusable as-is.

The templates are Go text/templates rendered against the task-template data (fields: Version, Number, ReleaseKind, PreviousVersion, ReleaseNotesURL, DownloadsURL).

Index

Constants

This section is empty.

Variables

View Source
var DefaultBody = template.Must(template.New("body").Parse(defaultBody))

DefaultBody is the built-in body template used when no TASK_BODY_TEMPLATE override is configured.

View Source
var DefaultTitle = template.Must(
	template.New("title").Parse(strings.TrimRight(defaultTitle, "\n")),
)

DefaultTitle is the built-in title template used when no TASK_TITLE_TEMPLATE override is configured. Trailing newlines from the embedded file are trimmed so the rendered title stays a single line.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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