acronym

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(s string) (string, error)

Get a group's initialism or acronym. For example "Defacto2" would return "df2".

func Trim

func Trim(s string) string

Trim removes a (bracketed initialism) from s. For example "Defacto2 (DF2)" would return "Defacto2".

Types

type Group

type Group struct {
	Name       string
	Initialism string
}

func (*Group) Get

func (g *Group) Get() error

Get the initialism for the named group.

Jump to

Keyboard shortcuts

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