rename

package
v1.11.13 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package rename handles the renaming and formatting of the group title.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(db *sql.DB, w io.Writer, name string) (bool, error)

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

func CleanS added in v1.11.0

func CleanS(s string) string

CleanS fixes the malformed string.

func FmtByName added in v1.11.0

func FmtByName(s string) string

FmtByName formats the group name using stylized casing.

func FmtExact added in v1.11.0

func FmtExact(g string) string

FmtExact matches the exact group name to apply a format.

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(db *sql.DB, newName, group string) (int64, 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