config

package
v0.0.0-...-345b6a2 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogConf

type LogConf struct {
	// Dir describes where save log file.
	Dir string
	// Mode describes a log mode, if the mode is 'console' means show will print
	// log on console, or else if the mode is 'file' means save log to file.
	Mode string
}

LogConf describes a log configuration.

func Log

func Log() LogConf

Log returns a log configuration.

type ThemeConf

type ThemeConf struct {
	// Dir describes where could find theme out.
	Dir string
	// Mode describes theme mode, if the mode is 'none' means disable painting output,
	// and if the mode is 'rand' means that will select a theme randomly at a time,
	// else if the mode is 'static' means that will use the specified theme by Name.
	Mode string
	// Name describes a theme name, do not specified theme name with extension.
	Name string
}

ThemeConf describes a theme configuration.

func Theme

func Theme() ThemeConf

Theme gets a theme configuration from file.

Jump to

Keyboard shortcuts

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