Package htmlpage provides tools for working with complete HTML pages, for the Go programming language.
Find a file
2025-09-24 05:53:50 -07:00
go.mod go.* 2025-09-24 05:53:50 -07:00
go.sum go.* 2025-09-24 05:53:50 -07:00
LICENSE initial commits 2025-09-21 06:05:51 -07:00
README.md example 2025-09-21 06:09:17 -07:00
transform.go refactor, and now only wrap in <main> if it is not there already 2025-09-21 18:57:16 -07:00
wrappinghttphandler.go refactor, and now only wrap in <main> if it is not there already 2025-09-21 18:57:16 -07:00

go-htmlpage

Package htmlpage provides tools for working with complete HTML pages, for the Go programming language.

Documention

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

GoDoc

Example

Here is an example of using htmlpage.WrappingHTTPHandler:

var handler http.Handler = http.HandlerFunc(serveHTTP)

handler = htmlpage.WrappingHTTPHandler{handler} // <---------

Import

To import package htmlpage use import code like the following:

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

Installation

To install package htmlpage do the following:

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

Author

Package htmlpage was written by Charles Iliya Krempeaux