util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

source https://github.com/cli/cli/blob/trunk/utils/utils.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayURL

func DisplayURL(urlStr string) string

func FuzzyAgo

func FuzzyAgo(ago time.Duration) string

func FuzzyAgoAbbr

func FuzzyAgoAbbr(now time.Time, createdAt time.Time) string

func Humanize

func Humanize(s string) string

func IsURL

func IsURL(s string) bool

func Pluralize

func Pluralize(num int, thing string) string

func ValidURL

func ValidURL(urlStr string) bool

ValidURL Maximum length of a URL: 8192 bytes

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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