Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
ShowAllFiles bool
Gopath string `env:"GOPATH"`
HomeDir string `env:"HOME"`
GlamourMaxWidth uint
GlamourStyle string
EnableMouse bool
// Which directory should we start from?
WorkingDirectory string
// Which document types shall we show?
DocumentTypes DocTypeSet
// For debugging the UI
Logfile string `env:"GLOW_LOGFILE"`
HighPerformancePager bool `env:"GLOW_HIGH_PERFORMANCE_PAGER" default:"true"`
GlamourEnabled bool `env:"GLOW_ENABLE_GLAMOUR" default:"true"`
}
Config contains TUI-specific configuration.
type DocType ¶ added in v1.3.0
type DocType int
DocType represents a type of markdown document.
Available document types.
type DocTypeSet ¶ added in v1.3.0
type DocTypeSet map[DocType]struct{}
DocTypeSet is a set (in the mathematic sense) of document types.
func NewDocTypeSet ¶ added in v1.3.0
func NewDocTypeSet(t ...DocType) DocTypeSet
NewDocTypeSet returns a set of document types.
func (*DocTypeSet) Add ¶ added in v1.3.0
func (d *DocTypeSet) Add(t ...DocType) int
Add adds a document type of the set.
func (DocTypeSet) AsSlice ¶ added in v1.3.0
func (d DocTypeSet) AsSlice() (agg []DocType)
AsSlice returns the set as a slice of document types.
func (DocTypeSet) Contains ¶ added in v1.3.0
func (d DocTypeSet) Contains(m ...DocType) bool
Contains returns whether or not the set contains the given DocTypes.
func (DocTypeSet) Difference ¶ added in v1.3.0
func (d DocTypeSet) Difference(t ...DocType) DocTypeSet
Difference return a DocumentType set that does not contain the given types.
func (DocTypeSet) Equals ¶ added in v1.3.0
func (d DocTypeSet) Equals(other DocTypeSet) bool
Equals returns whether or not the two sets are equal.
Click to show internal directories.
Click to hide internal directories.