config

package
v0.0.0-...-2b36536 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CfgFileName   = ".gosi.yaml"
	GoModFileName = "go.mod"

	StdGroupIdx  = 0
	ProjGroupIdx = 1

	StdGroupName  = "std"
	ProjGroupName = "proj"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Ignore Ignore
	Groups []Group
}

func Parse

func Parse(projDir string) (*Config, error)

type Group

type Group struct {
	Name   string   `yaml:"name"`
	Prefix string   `yaml:"prefix"`
	Paths  []string `yaml:"paths"`
}

type Ignore

type Ignore struct {
	Dirs  []string `yaml:"dirs"`
	Files []string `yaml:"files"`
}

Jump to

Keyboard shortcuts

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