config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the current version of Arken
	Version string = "develop"
	// Global is the global application configuration
	Global Config
)

Functions

func Init

func Init(path string) error

func ParseFile

func ParseFile(path string, in *Config) error

ParseFile decodes the application configuration from the TOML encoded file at the specified path.

func WriteFile

func WriteFile(path string, in *Config) error

WriteFile writes changes to the application configuration back to the TOML encoded file.

Types

type Config

type Config struct {
	Core     core     `toml:"core"`
	Manifest manifest `toml:"manifest"`
	Git      git      `toml:"git"`
}

Jump to

Keyboard shortcuts

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