Package harticle provides an http.Handler middleware to render harticle to HTML, for the Go programming language.
- Go 100%
| internal/bluemondays | ||
| author.go | ||
| controller.go | ||
| errors.go | ||
| extractauthors.go | ||
| extractcategories.go | ||
| extracttitle.go | ||
| fileextension.go | ||
| go.mod | ||
| go.sum | ||
| handler.go | ||
| htmlrenderer.go | ||
| LICENSE | ||
| mediatype.go | ||
| mediatypes.go | ||
| README.md | ||
| sanitizebytes.go | ||
| sanitizestring.go | ||
| simplehtmlrenderer.go | ||
| transformtoactivity.go | ||
| transformtoactivity_test.go | ||
go-harticle
Package harticle provides an http.Handler middleware to render harticle to HTML, for the Go programming language.
Documention
Online documentation, which includes examples, can be found at: http://godoc.org/codeberg.org/reiver/go-harticle
Example
Here is an example of using harticle.Handler to wrap another handler, to provide mardown to HTML rendering.
import "codeberg.org/reiver/go-harticle"
// ...
var handler http.Handler = ...
handler = harticle.Wrap(handler, harticle.SimpleRenderer) // <---------
err := http.ListenAndServe(":8080", handler)
if nil != err {
return err
}
Import
To import package harticle use import code like the following:
import "codeberg.org/reiver/go-harticle"
Installation
To install package harticle do the following:
GOPROXY=direct go get codeberg.org/reiver/go-harticle
Author
Package harticle was written by Charles Iliya Krempeaux