config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpgradesAuto     string = "auto"
	UpgradesAsk      string = "ask"
	UpgradesDisabled string = "disabled"
)

Variables

This section is empty.

Functions

func SetDefaultVersion added in v0.0.3

func SetDefaultVersion(gowrapHome, version string) error

Types

type Configuration

type Configuration struct {
	DefaultVersion string `json:"defaultVersion,omitempty"`
	Upgrades       string `json:"upgrades,omitempty"`
	// contains filtered or unexported fields
}

func Load

func Load(gowrapHome string) (*Configuration, error)

func (*Configuration) Save

func (c *Configuration) Save() error

Jump to

Keyboard shortcuts

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