config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TomlFile = "hotpot.toml"
)

Variables

View Source
var (
	DefaultToml = Toml{
		Delay:         2000,
		Command:       "go build",
		WatchFiles:    []string{"go"},
		IgnoreFolders: []string{"node_modules", "vendor", ".git", ".idea", ".vscode", "log", "build", "dist", "bin", "public", "target", "output"},
		ShowEvent:     false,
		Github:        "https://github.com/KM911/hotpot",
	}
	UserToml = Toml{}
)

Functions

func CreateDefaultToml

func CreateDefaultToml()

func LoadToml

func LoadToml()

Types

type Toml

type Toml struct {
	Delay         int
	Command       string
	WatchFiles    []string
	IgnoreFolders []string
	ShowEvent     bool
	Github        string
}

Jump to

Keyboard shortcuts

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