stringutil

package
v0.0.0-...-54413c5 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinAddress

func JoinAddress(addrs []mail.Address) string

JoinAddress formats a slice of Address structs such that they can be used in a To or Cc header.

func SplitQuoted

func SplitQuoted(s string, sep rune, quote rune) []string

SplitQuoted splits a string, ignoring separators present inside of quoted runs. Separators cannot be escaped outside of quoted runs, the escaping will be ignored.

Quotes are preserved in result, but the separators are removed.

func UUID

func UUID() string

UUID generates a random UUID according to RFC 4122.

func Wrap

func Wrap(max int, strs ...string) []byte

Wrap builds a byte slice from strs, wrapping on word boundaries before max chars

Types

This section is empty.

Jump to

Keyboard shortcuts

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