Registry / utility / shurcool-htmlg

shurcool-htmlg

JSON →
library0.0.0-20230705022835-a97fae3bef2cgogounverified

Package htmlg contains helper funcs for generating HTML nodes and rendering them.

go get github.com/shurcooL/htmlg
INSTALL
IMPORT
SIG · SHURCOOL-HTMLG
S
shurcool-htmlg
utilitygov0.0.0-20230705022835-a97fae3bef2c
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

htmlg
github.com/shurcooL/htmlg

Create and render a div element with text.

package main import ( "fmt" "github.com/shurcooL/htmlg" "golang.org/x/net/html" ) func main() { node := htmlg.Div(htmlg.Text("Hello, World!")) fmt.Println(htmlg.Render(node)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20230705022835-a97fae3bef2clatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
shurcool-htmlg — go get shurcool-htmlg · libregistry