template

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package template provides additional functions for text/template.

Functions

json
split
join
title
lower
upper

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(name, text string) (*template.Template, error)

New returns a new named template.Text with the basic functions and parses text as template.

func Parse

func Parse(format string, data interface{}) string

Parse format and fill it with data.

Types

This section is empty.

Directories

Path Synopsis
Package format provides configuration for output formatting.
Package format provides configuration for output formatting.
flags
Package flags provides -template and -json flags for output formatting.
Package flags provides -template and -json flags for output formatting.

Jump to

Keyboard shortcuts

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