Documentation ¶
Index ¶
- func Copy(src interface{}) interface{}
- func Ensure(err error)
- func EnsureLeft(left interface{}, err error) interface{}
- func EnsureRight(err error, right interface{}) interface{}
- func FileNameTrimSuffix(fp string) string
- func HasBin(bins ...string) bool
- func ISBlank(value reflect.Value) bool
- func InstallPackages(pkgs ...string) error
- func NetWorkStatus() bool
- func OpenFile(name string, flag int, perm os.FileMode) (*os.File, error)
- func RemoveFileWithSuffix(wd string, suffix string)
- func SearchFileInDirWithSuffix(wd string, suffix string, cb func(string) bool) string
- func SetFormatter(isTerminal bool)
- func SetLevel(cmd *cobra.Command)
- func ViperSetDefault(key string, value interface{}, standby ...interface{})
- func WalkFileInDirWithSuffix(wd string, suffix string) ([]string, error)
- type DeepCopyInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureRight ¶
func EnsureRight(err error, right interface{}) interface{}
EnsureRight defined TODO
func RemoveFileWithSuffix ¶
RemoveFileWithSuffix defined TODO
func SearchFileInDirWithSuffix ¶
SearchFileInDirWithSuffix defined TODO
func ViperSetDefault ¶
func ViperSetDefault(key string, value interface{}, standby ...interface{})
ViperSetDefault defined TODO
Types ¶
type DeepCopyInterface ¶
type DeepCopyInterface interface {
DeepCopy() interface{}
}
DeepCopyInterface defined TODO
Click to show internal directories.
Click to hide internal directories.