//
pkg.gl
Category
github.com/Go-zh/website
internal
texthtml
package
0.0.0-20240423165716-7ef61953e366
Repository:
https://github.com/go-zh/website.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
12
Dependents
2
Files
618 SLOC
#
Functions
Format
Format formats text to HTML according to the configuration cfg.
Spans
Spans is a helper function to make a Selection from a slice of spans.
#
Structs
Config
A Config configures how to format text as HTML.
Span
A Span describes a text span [start, end).
#
Type aliases
Selection
A Selection is an "iterator" function returning a text span.