config

package
v0.0.0-...-308ef3f Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Flags passed to './configure'. These options are available to
	// commands, in order to set flags during compilation.
	//
	// Note that --prefix is always set by vin
	ConfigureFlags string `toml:"configure_flags"`

	// MakeOpts are passed to make
	MakeOpts string `toml:"MAKEOPTS"`

	// CFlags and CXXFlags are inserted into the environment when
	// running build commands
	CFlags   string `toml:"CFLAGS"`
	CXXFlags string `toml:"CXXFLAGS"`
}

Config holds all of the configuration that vin needs, including things like make/ confdigure opts, and so on

This struct can be passed into builds to allow for templating build opts

func Load

func Load(configFile string) (c Config, err error)

func (Config) String

func (c Config) String() string
Example
fmt.Println(Config{}.String())
Output:

configure_flags = ''
MAKEOPTS = ''
CFLAGS = ''
CXXFLAGS = ''

Jump to

Keyboard shortcuts

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