config

package
v0.41.4 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const BuildBranchDefault = ""

BuildBranchDefault Default go-flutter branch

View Source
const BuildEngineDefault = ""

BuildEngineDefault Default go-flutter engine version

View Source
const BuildOpenGlVersionDefault = "3.3"

BuildOpenGlVersionDefault Default OpenGL version for go-flutter

View Source
const BuildTargetDefault = "lib/main_desktop.dart"

BuildTargetDefault Default build target file

Variables

This section is empty.

Functions

func PrintMissingField added in v0.41.3

func PrintMissingField(name, file, def string)

Types

type Config

type Config struct {
	ApplicationName string `yaml:"application-name"`
	ExecutableName  string `yaml:"executable-name"`
	PackageName     string `yaml:"package-name"`
	License         string
	Target          string
	Branch          string
	CachePath       string `yaml:"cache-path"`
	OpenGL          string
	Engine          string `yaml:"engine-version"`
	// contains filtered or unexported fields
}

Config contains the parsed contents of hover.yaml

func GetConfig

func GetConfig() Config

GetConfig returns the working directory hover.yaml as a Config

func ReadConfigFile

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

ReadConfigFile reads a .yaml file at a path and return a correspond Config struct

func (Config) GetApplicationName added in v0.41.3

func (c Config) GetApplicationName(projectName string) string

func (Config) GetExecutableName added in v0.41.3

func (c Config) GetExecutableName(projectName string) string

func (Config) GetLicense added in v0.41.3

func (c Config) GetLicense() string

func (Config) GetPackageName added in v0.41.3

func (c Config) GetPackageName(projectName string) string

Jump to

Keyboard shortcuts

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