templatex

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capitalize

func Capitalize(source string) string

Capitalize returns a copy of the string with the first letter capitalized.

strings.Title is not used because it is deprecated.

func CapitalizeInterval

func CapitalizeInterval(i models.IntervalEnum) string

func DerefBool

func DerefBool(b *bool) bool

DerefBool derefences a pointer to a boolean.

func PrettierDate

func PrettierDate(t time.Time) string

PrettierDate returns a date in the following format: Monday, January 4th, 2021

func PrettyDate

func PrettyDate(t time.Time) string

PrettyDate returns a date in the following format: January 4th, 2022

Types

This section is empty.

Jump to

Keyboard shortcuts

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