Documentation ¶
Index ¶
- Variables
- func FormatDate(unixTime uint64) string
- func FormatDuration(seconds uint64) string
- func FormatHumanReadable(b int64) string
- func HumanizeUrl(uri string) string
- func IsBlank(text string) bool
- func Redirect(uri string) string
- func RewriteProxied(uri string) string
- func TakeN(text string, count int) string
- func Test[A, W comparable](tests []TestSuite[A, W], toTest func(A) W, log func(W, W))
- func WaitTimeout(wg *sync.WaitGroup, timeout time.Duration) bool
- type TestSuite
Constants ¶
This section is empty.
Variables ¶
View Source
var IsAlphabetic = regexp.MustCompile(`^[A-Za-z]+$`).MatchString
Functions ¶
func FormatDate ¶
func FormatDuration ¶
func FormatHumanReadable ¶
func HumanizeUrl ¶
func RewriteProxied ¶
func Test ¶
func Test[A, W comparable](tests []TestSuite[A, W], toTest func(A) W, log func(W, W))
Types ¶
Click to show internal directories.
Click to hide internal directories.