conf

package
Version: v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf added in v0.2.4

type Conf struct {
	Package string   `yaml:"package,omitempty"`
	Imports []Import `yaml:"import,omitempty"`
	// contains filtered or unexported fields
}

func Parse

func Parse(path string) (*Conf, error)

func (*Conf) ConfFile added in v0.2.4

func (t *Conf) ConfFile() string

func (*Conf) Dedupe added in v0.2.4

func (t *Conf) Dedupe()

Dedupe deletes duplicates and sorts the imports

func (*Conf) Dump added in v0.2.4

func (t *Conf) Dump(path string) error

func (*Conf) Get added in v0.2.4

func (t *Conf) Get(pkg string) (Import, bool)

type Import

type Import struct {
	Package string `yaml:"package,omitempty"`
	Version string `yaml:"version,omitempty"`
	Repo    string `yaml:"repo,omitempty"`
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL