stringutil

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: MIT Imports: 10 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 ToASCII added in v0.2.0

func ToASCII(s string) string

ToASCII converts unicode to ASCII by stripping accents and converting some special characters into their ASCII approximations. Anything else will be replaced with an underscore.

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