s

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(nodes ...node.Node) *element

New Creates a new s element with optional child nodes. Examples: s.New() renders <s></s> s.New(text.Text("Old price: $100")) renders <s>Old price: $100</s>

func RawText

func RawText(content string) *element

RawText Creates a new s element with raw text content. Example: s.RawText("Old price: $100") Renders: <s>Old price: $100</s>

func Static

func Static(content string) *element

Static Creates a new s element with static text content. Example: s.Static("Hello World") Renders: <s>Hello World</s>

func Text

func Text(content string) *element

Text Creates a new s element with text content. Example: s.Text("Old price: $100") Renders: <s>Old price: $100</s>

Types

type Element

type Element = element

Element is an exported alias for the private element type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL