Categorygithub.com/kellerza/template
modulepackage
0.0.6
Repository: https://github.com/kellerza/template.git
Documentation: pkg.go.dev

# README

Go Reference DeepSource

Overview

Package template implements a wrapper around the Go standard library text/template

It includes helpers to render the template and several additional functions

# Functions

Test if a string contains a substring.
Return a default value if a value is not available.
No description provided by the author
The expect function tests if the input satisfies a certain type.
The indexes can either follow the value, or be before the value (supporting pipe) Negative indexes are allowed and will be the offset from the length.
Return only the IP address from a value containing an IP/mask.
Return only the mask from a value containing an IP/mask.
Joins an array of values or slice using the specified separator.
Get an instance of Template (text/template's Template with all functions added).
The optional function takes exactly the sameparameters as the expect function If the value is not supplied, the function will return an empty string If a value was supplied, it should match the logic from the expect function.
Add paths to search for templates.
Slicing.
Split a string using the separator.

# Variables

The following functions will be available when rendering the template.

# Structs

No description provided by the author

# Type aliases

No description provided by the author