Documentation ¶
Index ¶
Constants ¶
View Source
const TextWidth = 80
Variables ¶
View Source
var CertChanged = errors.New("cert has changed")
View Source
var NotFound = errors.New("cert not found")
Functions ¶
func GenerateClientCertificate ¶
func GenerateClientCertificate(certFile, keyFile string, config x509.Certificate) error
func ToANSI ¶
func ToANSI(data string, availableWidth int, baseURL neturl.URL) ( content string, links text.Links, title string)
ToANSI convert Gemtext to text suitable for terminal output with colors It returns the converted text, a list of links with vertical positions, and the title of the page the title defaults to given baseURL when not found in the page
Types ¶
Click to show internal directories.
Click to hide internal directories.