emailshell

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package emailshell is the Rivolt look for HTML email: a 560 px card under an emerald bolt mark, light and dark, system fonts, no images and no remote content. FromText wraps a plain-text body in it word for word, so the HTML part can never say something the text part does not. The statement, the launch notice, the renewal reminder and the dated notices share it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromText

func FromText(title, text string) string

FromText renders a plain-text email as HTML in the shell. Blank lines separate paragraphs, single newlines stay line breaks, and every http(s) address becomes a link whose text is the address itself. The last paragraph (the sign-off and the not-affiliated line) is set small and muted; the words are unchanged.

func Wrap

func Wrap(title, bodyHTML string) string

Wrap puts bodyHTML (already escaped, trusted markup) in the shell. title is the subject: it becomes the document title.

Types

This section is empty.

Jump to

Keyboard shortcuts

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