Documentation
¶
Overview ¶
Package html implements rich text to HTML conversion
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Format ¶
Format converts any value to HTML
Example ¶
package main
import (
"fmt"
"github.com/dotchain/dot/x/rich"
"github.com/dotchain/dot/x/rich/data"
"github.com/dotchain/dot/x/rich/html"
)
func main() {
s := rich.NewText("hello", data.FontBold)
fmt.Println("html =", html.Format(s))
}
Output: html = <b>hello</b>
Types ¶
Click to show internal directories.
Click to hide internal directories.