header

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MIMEVersion             = "MIME-Version"
	ContentID               = "Content-ID"
	ContentType             = "Content-Type"
	ContentDescription      = "Content-Description"
	ContentDisposition      = "Content-Disposition"
	ContentTransferEncoding = "Content-Transfer-Encoding"
	From                    = "From"
	To                      = "To"
	Subject                 = "Subject"
	Date                    = "Date"
	ListID                  = "List-ID"
	ListOwner               = "List-Owner"
	ListPost                = "List-Post"
	ListHelp                = "List-Help"
	ListUnsubscribe         = "List-Unsubscribe"

	// If multiple URLs are present in List-Unsubscribe, the inbox provider will apply the List-Unsubscribe-Post command to the first HTTPS URI it finds. (RFC 8058)
	ListUnsubscribePost = "List-Unsubscribe-Post"
)

Variables

This section is empty.

Functions

func ValidateListID

func ValidateListID(value string) (err error)

func ValidateListUnsubscribe

func ValidateListUnsubscribe(value string) (err error)

func ValidateListUnsubscribePost

func ValidateListUnsubscribePost(value string) (err error)

Types

type Error

type Error uint8
const (
	ErrInvalid Error = iota
	ErrEmptyName
	ErrEmptyValue
)

func (Error) Error

func (err Error) Error() string
type Header struct {
	Name  string
	Value string
}

func New

func New(name, value string) (h Header, err error)

func (Header) String

func (h Header) String() string

Jump to

Keyboard shortcuts

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