Documentation
¶
Index ¶
- Variables
- func Atoi(s string) int
- func BytesToSize(value float64) string
- func ClearScreen()
- func CopyFile(source string, destination string)
- func CreateFile(name string, s string) error
- func GetConfigPath(name string, filename string) string
- func Input(s string) string
- func IsCommandExists(file string) bool
- func JsonReadWrite(filename string, v interface{}, vd interface{})
- func JsonWrite(v interface{}, filename string)
- func KillProcess(p *os.Process)
- func MakeDir(fullpath string)
- func PaddingLeft(value string, s string, count int) string
- func PaddingRight(value string, s string, count int) string
- func RealPath(name string) string
- type InterruptHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Lock = sync.RWMutex{} Stdin = bufio.NewReader(os.Stdin) PathFile, _ = os.Executable() )
Functions ¶
func BytesToSize ¶
func ClearScreen ¶
func ClearScreen()
func CreateFile ¶
func GetConfigPath ¶
func IsCommandExists ¶
func JsonReadWrite ¶
func JsonReadWrite(filename string, v interface{}, vd interface{})
func KillProcess ¶
Types ¶
type InterruptHandler ¶
type InterruptHandler struct {
Done chan bool
Handle func()
}
func (*InterruptHandler) Start ¶
func (i *InterruptHandler) Start()
func (*InterruptHandler) Wait ¶
func (i *InterruptHandler) Wait()
Click to show internal directories.
Click to hide internal directories.