utils

package
v0.52.5 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: GPL-3.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt added in v0.44.0

func Decrypt(ctx context.Context, encKey []byte, encData string) (string, error)

func Encrypt added in v0.44.0

func Encrypt(ctx context.Context, encKey []byte, data string) (string, error)

func IsCtxDone added in v0.44.0

func IsCtxDone(ctx context.Context) bool

func LongestCommonPrefix

func LongestCommonPrefix(list []string) string

func NoArticle

func NoArticle(name string) string

func SanitizeFieldForSorting added in v0.52.5

func SanitizeFieldForSorting(originalValue string) string

func SanitizeFieldForSortingNoArticle added in v0.52.5

func SanitizeFieldForSortingNoArticle(originalValue string) string

func SanitizeStrings

func SanitizeStrings(text ...string) string

func SanitizeText added in v0.47.0

func SanitizeText(text string) string

func TempFileName added in v0.52.0

func TempFileName(prefix, suffix string) string

Types

type IndexGroups

type IndexGroups map[string]string

func ParseIndexGroups

func ParseIndexGroups(spec string) IndexGroups

ParseIndexGroups The specification is a space-separated list of index entries. Normally, each entry is just a single character, but you may also specify multiple characters. For instance, the entry "The" will link to all files and folders starting with "The".

You may also create an entry using a group of index characters in parentheses. For instance, the entry "A-E(ABCDE)" will display as "A-E" and link to all files and folders starting with either A, B, C, D or E. This may be useful for grouping less-frequently used characters (such and X, Y and Z), or for grouping accented characters (such as A, \u00C0 and \u00C1)

Files and folders that are not covered by an index entry will be placed under the index entry "#".

Directories

Path Synopsis
Package gg implements simple "extensions" to Go language.
Package gg implements simple "extensions" to Go language.
Package pl implements some Data Pipeline helper functions.
Package pl implements some Data Pipeline helper functions.

Jump to

Keyboard shortcuts

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