Documentation
¶
Overview ¶
Example ¶
package main
import (
"fmt"
h "codeberg.org/FedericoSchonborn/go-sandbox/html"
)
func main() {
html := h.P(
"Here is a ",
h.A("https://go.dev", "link").
Target(h.TargetBlank),
", and a ",
h.Span("span"),
".",
)
fmt.Println(h.Render(html))
}
Output: <nil>
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SpanElement ¶
type SpanElement struct {
// contains filtered or unexported fields
}
func Span ¶
func Span(children ...any) *SpanElement
func (*SpanElement) Render ¶
func (span *SpanElement) Render() error
Click to show internal directories.
Click to hide internal directories.