util

package
v0.0.0-...-02bf5d9 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TimeZones = []string{}/* 419 elements not displayed */

It's just too much to find a good way to get this list, hardcoded

Functions

func FormatDuration

func FormatDuration(d time.Duration) string

func InCluster

func InCluster() bool

func LocalizeTime

func LocalizeTime(user *core.User, t time.Time) time.Time

func NormalizeURL

func NormalizeURL(rawURL string) (string, error)

NormalizeURL normalizes a URL by: 1. Removing trailing slashes and question marks 2. Normalizing query parameter order Returns an error if URL is invalid

func SiteRoot

func SiteRoot() string

func SplitLines

func SplitLines(s string) []string

Types

This section is empty.

Directories

Path Synopsis
csp

Jump to

Keyboard shortcuts

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