Documentation ¶
Overview ¶
Package prelude contains the most commonly used utility functions
Index ¶
- func CD(dir string) (interface{}, error)
- func Cat(filename string) (string, error)
- func Echo(args ...interface{}) string
- func Exit(code int, args ...interface{}) (interface{}, error)
- func FuncMap() template.FuncMap
- func Head(input interface{}) interface{}
- func PWD() (string, error)
- func Printf(format string, args ...interface{}) string
- func Reverse(input interface{}) interface{}
- func Sort(input interface{}) interface{}
- func Stdin() (string, error)
- func Tail(input interface{}) interface{}
- func Tee(filename, input string) (string, error)
- func ToGo(input interface{}) (string, error)
- func ToJSON(input interface{}) (string, error)
- func ToPrettyJSON(input interface{}) (string, error)
- func ToPrettyXML(input interface{}) (string, error)
- func ToShell(input interface{}) (string, error)
- func ToString(input interface{}) string
- func ToStringSlice(input interface{}) []string
- func ToTOML(input interface{}) (string, error)
- func ToXML(input interface{}) (string, error)
- func ToYAML(input interface{}) (string, error)
- func TypeOf(input interface{}) reflect.Type
- type Directory
- type ExecRet
- type FZFRet
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToPrettyJSON ¶
func ToPrettyXML ¶
func ToStringSlice ¶
func ToStringSlice(input interface{}) []string
Types ¶
type Directory ¶ added in v0.0.4
type Directory struct {
// contains filtered or unexported fields
}
type ExecRet ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.