utils

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForceCreateUniqueId

func ForceCreateUniqueId() (string, error)

Returns a unique id. The id is guaranteed to be created and can be used even if there is an error. The error should be logged.

func PrepareUrl

func PrepareUrl(s string) string

func PrettyDuration

func PrettyDuration(d time.Duration) string

func RunTemplating

func RunTemplating(l logger.AppLogger, templateString, name string, vars interface{}) string

func UrlsAreEqual

func UrlsAreEqual(a, b string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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