json

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDoesNotExist = errors.New("project config file does not exist")

ErrDoesNotExist is error to be returned when config file does not exists

Functions

func Exists

func Exists(path string) bool

Exists checks if file exists on the specified path

func Load

func Load(path string) (*config.Config, error)

func Save

func Save(conf *config.Config, path string) error

Save saves the configuration to the specified path file in JSON format.

Types

type Simple

type Simple map[string][]string

Jump to

Keyboard shortcuts

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