Documentation ¶
Index ¶
- type PangoColor
- type PangoSimple
- func (pm *PangoSimple) ApplyMarkup(markup ...string) string
- func (pm *PangoSimple) ApplyMarkupAgain(markup ...string) string
- func (pm *PangoSimple) Finalize(inString string) string
- func (pm *PangoSimple) Init()
- func (pm *PangoSimple) MarkupHttpClickable(inString string, keepFromEnd ...int) (outString string)
- func (pm *PangoSimple) Prepare(inString string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PangoColor ¶
type PangoColor struct { Black string Brown string White string Red string Green string Blue string Cyan string Magenta string Purple string Turquoise string Violet string Darkred string Darkgreen string Darkblue string Darkgray string Darkcyan string Lightblue string Lightgray string Lightgreen string Lightturquoise string Lightred string Lightyellow string }
func PangoColorNew ¶
func PangoColorNew() (pc *PangoColor)
func (*PangoColor) Init ¶
func (pc *PangoColor) Init()
type PangoSimple ¶
type PangoSimple struct {
// contains filtered or unexported fields
}
func PangoSimpleNew ¶
func PangoSimpleNew() (ps *PangoSimple)
func (*PangoSimple) ApplyMarkup ¶
func (pm *PangoSimple) ApplyMarkup(markup ...string) string
ApplyMarkup: This method add automatically the closer at end. ie: ApplyMarkup(`<span foreground="#FFFFFF">`, "hello")
func (*PangoSimple) ApplyMarkupAgain ¶
func (pm *PangoSimple) ApplyMarkupAgain(markup ...string) string
func (*PangoSimple) Finalize ¶
func (pm *PangoSimple) Finalize(inString string) string
finalize: restore originals characters using markup replacement
func (*PangoSimple) MarkupHttpClickable ¶
func (pm *PangoSimple) MarkupHttpClickable(inString string, keepFromEnd ...int) (outString string)
MarkupHttpClickable: Search for http adresses in the input text and make http adress as clickable links
func (*PangoSimple) Prepare ¶
func (pm *PangoSimple) Prepare(inString string) string
prepare: sanitize input string to safely use with pango
Click to show internal directories.
Click to hide internal directories.