tools

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package tools provides various methods for various things

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArgsParser added in v1.9.0

func ArgsParser(s string) []string

ArgsParser will split a string by new words and quotes phrases

func CleanTag added in v1.6.14

func CleanTag(s string) string

CleanTag returns a clean tag, removing whitespace and invalid characters

func GetHTMLAttributeVal added in v1.8.2

func GetHTMLAttributeVal(e *html.Node, key string) (string, error)

GetHTMLAttributeVal returns the value of an HTML Attribute, else an error. Returns a blank value if the attribute is set but empty.

func RemoveMessageHeaders

func RemoveMessageHeaders(msg []byte, headers []string) ([]byte, error)

RemoveMessageHeaders scans a message for headers, if found them removes them. It will only remove a single instance of any header, and is intended to remove Bcc & Message-Id.

Types

This section is empty.

Jump to

Keyboard shortcuts

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