Documentation ¶
Index ¶
- Constants
- func E(args ...interface{}) []interface{}
- func Exec(cmd, dir string, args ...string)
- func FileExists(path string) bool
- func Mkdir(path string, options *MkdirOptions) error
- func MustToJSON(data interface{}) string
- func MustToJSONBytes(data interface{}) []byte
- func OutputFile(p string, data interface{}, options *OutputFileOptions) error
- func RandBytes(len int) []byte
- func ReadFile(p string) ([]byte, error)
- func ReadJSON(p string, data interface{}) error
- func Sleep(seconds float64)
- type Message
- type MkdirOptions
- type OutputFileOptions
Constants ¶
View Source
const Version = "42792ca1c13bdb62dec335861832de5e"
Version ...
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
FileExists checks if file exists, only for file, not for dir
func MustToJSONBytes ¶
func MustToJSONBytes(data interface{}) []byte
MustToJSONBytes encode data to json bytes
func OutputFile ¶
func OutputFile(p string, data interface{}, options *OutputFileOptions) error
OutputFile auto creates file if not exists, it will try to detect the data type and auto output binary, string or json
Types ¶
Click to show internal directories.
Click to hide internal directories.