Documentation ¶
Index ¶
- func AbsDir(p string, nthR2L int) (string, error)
- func AllFileLines(file string) ([]string, error)
- func AllFiles(patterns []string, suffix string, singleDir bool) ([]string, error)
- func AllLines(r io.Reader) []string
- func DecodeCompileTimeString(str string) (string, error)
- func FindDirectory(name string) error
- func FindFile(name string) error
- func IndexStrings(a []string, str string) int
- func LCFirst(str string) string
- func Split(str string, sep string) []string
- func ToJSON(x interface{}) []byte
- func ToJSONString(x interface{}) string
- func ToPlainJSON(v interface{}) []byte
- func ToPlainJSONString(v interface{}) string
- func ToPrettyJSON(x interface{}) []byte
- func ToPrettyJSONString(x interface{}) string
- func UCFirst(str string) string
- func UnescapeUnicode(str string) string
- func WriteFileAtomic(file string, data []byte, perm os.FileMode) error
- func WriteUnixTextFile(filename string, data []byte, perm os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllFileLines ¶
func DecodeCompileTimeString ¶
func FindDirectory ¶
func IndexStrings ¶
func ToJSONString ¶
func ToJSONString(x interface{}) string
func ToPlainJSON ¶
func ToPlainJSON(v interface{}) []byte
func ToPlainJSONString ¶
func ToPlainJSONString(v interface{}) string
func ToPrettyJSON ¶
func ToPrettyJSON(x interface{}) []byte
func ToPrettyJSONString ¶
func ToPrettyJSONString(x interface{}) string
func UnescapeUnicode ¶
func WriteFileAtomic ¶
WriteFileAtomic writes file to temp and atomically move when everything else succeeds.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.