config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(conf *Config, filename string) (err error)

Types

type Config

type Config struct {
	Version   string     `json:"version"`   // 版本号
	Tool      string     `json:"tool"`      // 编译工具:go、gb...
	Package   string     `json:"package"`   // 待替换的变量所在包名
	Variables []Variable `json:"variables"` // 待替换变量集合
}

func Load

func Load(filename string) (conf *Config, err error)

type Variable

type Variable struct {
	Variable string `json:"variable"`
	Value    string `json:"value"`
}

Jump to

Keyboard shortcuts

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