conf

package
v0.0.0-...-7aa44a9 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildConf

type BuildConf struct {
	Rules   []string `cfg-attr:"rules"`
	Ignores []string `cfg-attr:"ignore-dirs"`
}

GobazelConf represents the bazel build config.

type GobazelConf

type GobazelConf struct {
	GoPath      string     `cfg-attr:"go-path"`
	GoPkgPrefix string     `cfg-attr:"go-pkg-prefix"`
	GoIdeCmd    string     `cfg-attr:"go-ide-cmd"`
	Ignores     []string   `cfg-attr:"ignore-dirs"`
	Vendors     []string   `cfg-attr:"vendor-dirs"`
	FallThrough []string   `cfg-attr:"fall-through-dirs"`
	Build       *BuildConf `cfg-attr:"build"`

	IgnoreSet      map[string]struct{}
	VendorSet      map[string]struct{}
	FallThroughSet map[string]struct{}
}

GobazelConf represents the gobazel global config.

func LoadConfig

func LoadConfig(cfgPath string) *GobazelConf

LoadConfig loads gobazel config from the given file.

Jump to

Keyboard shortcuts

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