Documentation ¶
Index ¶
- func CopyFile(src, dst string) (err error)
- func EnsureDir(dir string, mode os.FileMode) error
- func Fatalf(format string, args ...interface{})
- func IsAddress(str string) bool
- func IsDir(directory string) bool
- func IsHash(str string) bool
- func IsHex(str string) bool
- func IsPrivKey(str string) bool
- func IsPubKey(str string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFile ¶
copied from http://stackoverflow.com/questions/21060945/simple-way-to-copy-a-file-in-golang CopyFile copies a file from src to dst. If src and dst files exist, and are the same, then return success. Otherwise, attempt to create a hard link between the two files. If that fail, copy the file contents from src to dst.
func Fatalf ¶ added in v0.16.0
func Fatalf(format string, args ...interface{})
Prints an error message to stderr and exits with status code 1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.