Documentation
¶
Index ¶
- func CheckDir(path string) (bool, error)
- func CidrSubnet(netCidr string, newbits int, netnum interface{}) (ret string, err error)
- func Diff(structA, structB interface{}, colored bool) string
- func FileExists(filename string) bool
- func GetTemplate(gitURL, targetDir, templateName string) (string, error)
- func IsAbsolutePath(path string) bool
- func IsDir(path string) bool
- func IsLocalPath(path string) bool
- func JSONDecode(in []byte, out interface{}) error
- func JSONEncode(in interface{}) ([]byte, error)
- func JSONInterfaceToType(in, out interface{}) error
- func Md5(data string) string
- func ReadYAML(objData []byte) (res map[string]interface{}, err error)
- func ReadYAMLObjects(objData []byte) ([]map[string]interface{}, error)
- func TruncateString(src string, maxLen int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CidrSubnet ¶
func GetTemplate ¶
func IsAbsolutePath ¶
func IsLocalPath ¶
func JSONInterfaceToType ¶
func JSONInterfaceToType(in, out interface{}) error
JSONInterfaceToType - convert interface data in to type of out with JSON tags.
func ReadYAMLObjects ¶
func TruncateString ¶
TruncateString - truncate string src to maxLen.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.