template

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package template provides functions to colorize strings for reporting purposes.

Index

Constants

This section is empty.

Variables

View Source
var FunMap = template.FuncMap{
	"cyan":   color.CyanString,
	"green":  color.HiGreenString,
	"red":    color.HiRedString,
	"yellow": color.YellowString,
	"sub": func(x, y int) int {
		return x - y
	},
}

Functions

func Execute

func Execute(w io.Writer, name string, data any) error

Execute executes a template with the given name and data, writing the output to the provided writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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