decorate

package
v1.0.0-...-e3b73d2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: MIT Imports: 1 Imported by: 16

Documentation

Overview

Package decorate provides facilities to customizable template styling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marker

type Marker string

Marker contains rune sequence which identifies part of format tags.

func NewMarker

func NewMarker(marker string) Marker

NewMarker constructs new instance from the marker given. If the marker is empty the function will panic.

func (Marker) String

func (mrkr Marker) String() string

type Style

type Style struct {
	TagOpen            Marker
	TagClose           Marker
	AttributeDelimiter Marker
	ModDelimiter       Marker
	Attributes         map[string]ansi.Attribute
}

Style allows to make decoration style customizable.

Directories

Path Synopsis
Package basic defines basic decoration style.
Package basic defines basic decoration style.
Package curly defines curly bracket decoration style.
Package curly defines curly bracket decoration style.

Jump to

Keyboard shortcuts

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