config

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildFlags

type BuildFlags struct {
	Ldflags string
	Tags    string
}

type Config

type Config struct {
	Global   BuildFlags
	Packages []struct {
		Name       string
		BuildFlags `yaml:",inline"`
	}
}

func Read

func Read(configPath string) (*Config, error)

func (*Config) GetFlags

func (c *Config) GetFlags(pkgName string) *BuildFlags

Jump to

Keyboard shortcuts

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