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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.