version

package
v0.0.0-...-9649b88 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultValue          = ""
	DefaultConfigFilePath = "."
	ConfigFileName        = "knitter.json"
)

Variables

View Source
var GetConfObject = func(confPath string, moduleName string) (*jason.Object, error) {
	if confPath == "" {
		confPath = DefaultConfigFilePath + "/" + ConfigFileName
	}
	confData, err := ioutil.ReadFile(confPath)
	if err != nil {
		klog.Error("readFileContent: ioutil.ReadFile(", confData,
			") failed, error: ", err)
		return nil, fmt.Errorf("%v:ioutil.ReadFile error", err)
	}

	return getJasonObj(confData, moduleName)
}

Functions

func HasVerFlag

func HasVerFlag() bool

judge whether command line params has --version option, return bool type

func PrintVersion

func PrintVersion()

print version info

Types

This section is empty.

Jump to

Keyboard shortcuts

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