Package structhtml provides tools for working with structured-HTML, for the Go programming language.
Find a file
2025-10-05 12:40:55 -07:00
internal/bluemondays <main> 2025-09-22 12:51:43 -07:00
author.go structhtml.ExtractAuthors() 2025-09-09 20:47:49 -07:00
extractauthors.go structhtml.ExtractAuthors() 2025-09-09 20:47:49 -07:00
extractauthors_test.go structhtml.ExtractAuthors() 2025-09-09 20:47:49 -07:00
extractcategories.go structhtml.ExtractCategories() 2025-09-09 20:49:14 -07:00
extracttitle.go properly deal with possible attributes on <h1> <h2> <h3> <h4> <h5> <h6> 2025-09-24 05:51:44 -07:00
extracttitle_test.go properly deal with possible attributes on <h1> <h2> <h3> <h4> <h5> <h6> 2025-09-24 05:51:44 -07:00
go.mod codeberg 2025-10-05 12:40:55 -07:00
go.sum codeberg 2025-10-05 12:40:55 -07:00
htmltotext.go structhtml.ExtractTitle() 2025-09-09 20:30:22 -07:00
httphandler.go codeberg 2025-10-05 12:40:55 -07:00
LICENSE initial commits 2025-09-09 20:21:05 -07:00
logger.go codeberg 2025-10-05 12:40:55 -07:00
mediatype.go structhtml.MediaType() 2025-09-15 18:46:37 -07:00
mediatype_examples_test.go structhtml.MediaType() 2025-09-15 18:46:37 -07:00
mediatype_test.go structhtml.MediaType() 2025-09-15 18:46:37 -07:00
README.md initial commits 2025-09-09 20:21:05 -07:00
sanitizebytes.go structhtml.SantizeBytes() structhtml.SantizeString() 2025-09-18 16:24:18 -07:00
sanitizestring.go structhtml.SantizeBytes() structhtml.SantizeString() 2025-09-18 16:24:18 -07:00
setcontentdisposition.go setContentDisposition() 2025-09-18 16:23:09 -07:00
transformertohtml.go docs 2025-09-19 06:28:58 -07:00

go-structhtml

Package structhtml provides tools for working with structured-HTML, for the Go programming language.

Structured-HTML are data-formats created that use HTML underneath.

A Structured HTML has its own media-type of the form text/???+html. Where the ??? is replaced with something. For example:

  • text/article+html
  • text/note+html
  • text/person+html

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/codeberg.org/reiver/go-structhtml

GoDoc

Import

To import package structhtml use import code like the following:

import "codeberg.org/reiver/go-structhtml"

Installation

To install package structhtml do the following:

GOPROXY=direct go get codeberg.org/reiver/go-structhtml

Author

Package structhtml was written by Charles Iliya Krempeaux