templatex

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: AGPL-3.0 Imports: 8 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

func PrettyURL added in v1.3.0

func PrettyURL(s string) string

PrettyURL returns a URL with the schema removed

Types

This section is empty.

Jump to

Keyboard shortcuts

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