text

package
v1.6.7 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPlural added in v1.6.7

func IsPlural(s string) bool

func Pluralize added in v1.6.7

func Pluralize(s string) string

func Singularize added in v1.6.7

func Singularize(s string) string

func Trunc

func Trunc(s string, length int) string

Types

type Truncator

type Truncator struct {
	Length int
}

func NewTruncator

func NewTruncator(length int) *Truncator

func (*Truncator) Trunc

func (t *Truncator) Trunc(s string) string

Jump to

Keyboard shortcuts

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