util

package
v0.0.0-...-1e29585 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const InternalDate = "02-Jan-2006 15:04:05 +0700"

Date format used in INTERNALDATE fetch parameter

View Source
const RFC822Date = "Mon, 2 Jan 2006 15:04:05 +0700"

RFC822 date format used by IMAP in go date format

Variables

This section is empty.

Functions

func FormatDate

func FormatDate(date time.Time) string

func MIMEHeaderToString

func MIMEHeaderToString(header textproto.MIMEHeader) string

func SplitParams

func SplitParams(params string) []string

func WriteMIMEHeader

func WriteMIMEHeader(writer io.Writer, header textproto.MIMEHeader) (n int, err error)

WriteMIMEHeader writes the MIME header out in the standard format. This should eventually be superseded by textproto.MIMEHeader.Write(w) once it is implemented in the go standard library.

Types

This section is empty.

Jump to

Keyboard shortcuts

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