Documentation ¶
Overview ¶
Package tools provides various methods for various things
Index ¶
- func ArgsParser(s string) []string
- func CleanTag(s string) string
- func CreateSnippet(text, html string) string
- func GetHTMLAttributeVal(e *html.Node, key string) (string, error)
- func RemoveMessageHeaders(msg []byte, headers []string) ([]byte, error)
- func UpdateMessageHeader(msg []byte, header, value string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArgsParser ¶
ArgsParser will split a string by new words and quotes phrases
func CreateSnippet ¶ added in v1.9.5
CreateSnippet returns a message snippet. It will use the HTML version (if it exists) otherwise the text version.
func GetHTMLAttributeVal ¶
GetHTMLAttributeVal returns the value of an HTML Attribute, else an error. Returns a blank value if the attribute is set but empty.
func RemoveMessageHeaders ¶
RemoveMessageHeaders scans a message for headers, if found them removes them. It will only remove a single instance of any given message header.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.