utils

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatSeconds added in v1.4.0

func FormatSeconds(seconds int64) string

func LowercaseMessage added in v1.4.0

func LowercaseMessage(message string) string

func Pluralize added in v1.4.0

func Pluralize(count int64, singular string) string

func RemoveTrailingPeriod added in v1.4.0

func RemoveTrailingPeriod(message string) string

func TextFromSentence added in v1.4.0

func TextFromSentence(message string) string

Types

type Config added in v1.4.0

type Config struct {
	GlobalpingToken            string
	GlobalpingAPIURL           string
	GlobalpingAuthURL          string
	GlobalpingDashboardURL     string
	GlobalpingAuthClientID     string
	GlobalpingAuthClientSecret string
	GlobalpingAPIInterval      _time.Duration
}

func NewConfig added in v1.4.0

func NewConfig() *Config

func (*Config) Load added in v1.4.0

func (c *Config) Load()

type Utils added in v1.4.0

type Utils interface {
	Now() _time.Time
	OpenBrowser(url string) error
}

func NewUtils added in v1.4.0

func NewUtils() Utils

Jump to

Keyboard shortcuts

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