config

package
v0.40.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: BSD-3-Clause Imports: 5 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

This section is empty.

Types

type Config

type Config struct {
	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

Jump to

Keyboard shortcuts

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