utils

package
v0.0.0-...-833dd96 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatHumanReadableDuration

func FormatHumanReadableDuration(start, end time.Time) string

func HttpRequest

func HttpRequest(method, url string, headers map[string]string, body io.Reader) *http.Response

func IsWithinDuration

func IsWithinDuration(now time.Time, duration types.TimeDuration) bool

func MergeStringArrays

func MergeStringArrays(a, b []string) []string

func Notify

func Notify(message string)

func NotifyBad

func NotifyBad(message string)

func NotifyConsole

func NotifyConsole(message string)

func NotifyConsoleBad

func NotifyConsoleBad(message string)

func NotifyConsoleGood

func NotifyConsoleGood(message string)

func NotifyGood

func NotifyGood(message string)

func ParseDateFromString

func ParseDateFromString(d string) time.Time

func ParseDurationFromString

func ParseDurationFromString(d string) time.Duration

func ParseRSSTimestampFromString

func ParseRSSTimestampFromString(d string) time.Time

func ParseTimeFromString

func ParseTimeFromString(t string) time.Time

func Pluralize

func Pluralize(s string, count int) string

func ShuffleStringArray

func ShuffleStringArray(slice []string)

func StringContainsWordIgnoreCase

func StringContainsWordIgnoreCase(value string, array []string) string

func StringToFloat

func StringToFloat(input string) (float64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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