templatetest

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package templatetest provides utilities for template testing

Index

Constants

This section is empty.

Variables

View Source
var Date = time.Date(2020, 12, 20, 1, 1, 1, 1, time.UTC)

Date is a fixed date - changing this value will affect some tests

Functions

func GetOpts

func GetOpts() config.Opts

GetOpts returns a configuration struct for tests - changing these values will affect some tests

func MakeItemHeader

func MakeItemHeader(date time.Time, opts config.Opts) string

MakeItemHeader is a helper to construct a header property of a contentItem struct

Types

This section is empty.

Jump to

Keyboard shortcuts

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