format

package
v0.0.0-...-8d37356 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressForHumans

func AddressForHumans(a *mail.Address) string

AddressForHumans formats the address. If the address's name contains non-ASCII characters it will be quoted but not encoded. Meant for display purposes to the humans, not for sending over the wire.

func FormatAddresses

func FormatAddresses(l []*mail.Address) string

FormatAddresses formats a list of addresses into a human readable string

func ParseMessageFormat

func ParseMessageFormat(format string, timeFmt string, ctx Ctx) (string,
	[]interface{}, error)

Types

type Ctx

type Ctx struct {
	FromAddress string
	AccountName string
	MsgNum      int
	MsgInfo     *models.MessageInfo
	MsgIsMarked bool
}

Jump to

Keyboard shortcuts

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