config

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(path string) (*configReal, *configDemo, error)

LoadConfig return config, configDemo

Types

type App

type App struct {
	Paths []Path `json:"paths"`
}

Read from file

type Config

type Config interface {
	Install() error
	Update() error
	Clean() error
	Diff() error
}

type Path

type Path struct {
	Internal string `json:"internal"`
	External string `json:"external"`
}

Jump to

Keyboard shortcuts

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