html_parser

package
v0.0.0-...-c5bc608 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type C

type C struct {
	X, Y int
	// contains filtered or unexported fields
}

type Content

type Content []Line

func Parse

func Parse(content string, formater RuneFormater) (Content, error)

func (Content) Render

func (c Content) Render() string

type Line

type Line []C

func (Line) Render

func (line Line) Render() string

func (Line) TrimLeadingSpace

func (line Line) TrimLeadingSpace() Line

func (Line) TrimTrailingSpace

func (line Line) TrimTrailingSpace() Line

type RuneFormater

type RuneFormater interface {
	GetDefaultStyle() termenv.Style
	I(Content) Content
	P(Content) Content
	Title(Content) Content
	Header(Content) Content
}

Jump to

Keyboard shortcuts

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