acronym

package
v1.9.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fix added in v1.9.0

func Fix() (int64, error)

Fix deletes any malformed initialisms in the database and returns the number of rows affected.

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