Documentation
¶
Index ¶
- func AtomicWriteFile(filename string, data []byte) error
- func Exists(path string) bool
- func IsDir(path string) bool
- func IsExecutable(path string) bool
- func IsFile(path string) bool
- func ReaderToBytes(reader io.Reader) []byte
- func ReaderToJSON(reader io.Reader) string
- func ReaderToString(reader io.Reader) string
- func StringToJSON(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtomicWriteFile ¶
AtomicWriteFile atomically writes data to filename.
func IsExecutable ¶
IsExecutable returns true if the given path points to an executable file.
func ReaderToBytes ¶
ReaderToBytes returns the content of a reader as a byte array. Read errors are ignored.
func ReaderToJSON ¶
ReaderToJSON returns the contents of reader as indented JSON. Read errors are ignored.
func ReaderToString ¶
ReaderToString Returns the content of reader as a string. Read errors are ignored.
func StringToJSON ¶
StringToJSON returns string s as indented JSON.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.