rename

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(name string) (ok bool)

Clean a malformed group name and save the fix to the database.

func CleanStr

func CleanStr(s string) string

CleanStr fixes the malformed string.

func FmtSyntax

func FmtSyntax(w string) string

FmtSyntax formats the special ampersand (&) character to be usable with the URL in use by the group.

func Format

func Format(s string) string

Format returns a copy of s with custom formatting.

func TrimDot

func TrimDot(s string) string

TrimDot removes any trailing dots from s.

func TrimThe

func TrimThe(s string) string

TrimThe removes 'the' prefix from s.

func Update

func Update(newName, group string) (count int64, err error)

Update replaces all instances of the group name with a new group name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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