package
Version:
v0.0.0-...-6513b37
Opens a new window with list of versions in this module.
Published: Aug 12, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func CoverAll(txt text.Rich, start, end int) bool
-
type AppendMap
-
func (a *AppendMap) Anchor(start, end int, href string)
-
func (a *AppendMap) AnchorNU(start, end int, href string)
-
func (a *AppendMap) Close(ind int, attr string)
-
func (a *AppendMap) Finalize(strlen int) []int
-
func (a AppendMap) Get(ind int) (tags string)
-
func (a *AppendMap) Open(ind int, attr string)
-
func (a *AppendMap) Openf(ind int, f string, argv ...interface{})
-
func (a *AppendMap) Pad(start, end int)
-
func (a *AppendMap) Pair(start, end int, open, close string)
-
func (a *AppendMap) Span(start, end int, attrs ...string)
CoverAll returns true if the given start and end covers the entire text
segment.
type AppendMap struct {
}
AnchorNU makes a new <a> tag without underlines and colors.
Pad inserts 2 spaces into start and end. It ensures that not more than 1
space is inserted.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.