stringutil

package
v3.1.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashMailboxName

func HashMailboxName(mailbox string) string

HashMailboxName accepts a mailbox name and hashes it. filestore uses this as the directory to house the mailbox

func MakePathPrefixer

func MakePathPrefixer(prefix string) func(string) string

MakePathPrefixer returns a function that will add the specified prefix (base) to URI strings. The returned prefixer expects all provided paths to start with /.

func MatchWithWildcards

func MatchWithWildcards(p string, s string) bool

MatchWithWildcards tests if a "s" string matches a "p" pattern with wildcards (*, ?)

func SliceContains

func SliceContains(slice []string, s string) bool

SliceContains returns true if s is present in slice.

func SliceToLower

func SliceToLower(slice []string)

SliceToLower lowercases the contents of slice of strings.

func StringAddress

func StringAddress(a *mail.Address) string

StringAddress converts an Address to a UTF-8 string.

func StringAddressList

func StringAddressList(addrs []*mail.Address) []string

StringAddressList converts a list of addresses to a list of UTF-8 strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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