Versions in this module Expand all Collapse all v1 v1.6.0 Apr 14, 2023 Changes in this version + const DEFAULT_TERMINAL_WIDTH — windows/amd64 + const DefaultTerminalWidth — darwin/amd64, js/wasm, linux/amd64 + const DirFileMode + const FileMode + var GOOS = runtime.GOOS + func CopyFile(source, dest string) error + func CopyFilesToDir(dir string, files []string, toDir string, flatten bool) error + func DirExists(dir string) bool + func ExpandUserHome(path string) string + func FileExists(file string) bool + func FileIsExecutable(file string) bool + func FindFiles(dir string, includes, excludes []string, folder bool) ([]string, error) + func FindInPath(executable string) []string + func IsMap(object interface{}) bool + func IsSlice(object interface{}) bool + func ListContains(list []string, name string) bool + func MaxLineLength(lines []string) int + func MoveFilesToDir(dir string, files []string, toDir string, flatten bool) error + func PathToUnix(path string) string + func PathToWindows(path string) string + func ReadFile(file string) ([]byte, error) + func RemoveBlankLines(text string) string + func TerminalWidth() int + func ToMapStringInterface(object interface{}) (map[string]interface{}, error) + func ToMapStringString(object interface{}) (map[string]string, error) + func ToSliceString(object interface{}) ([]string, error) + func ToString(object interface{}) (string, error) + func Windows() bool + type Object map[string]interface + func (object Object) CheckFields(fields []string) error + func (object Object) Copy() Object + func (object Object) Fields() []string + func (object Object) GetBoolean(field string) (bool, error) + func (object Object) GetInteger(field string) (int, error) + func (object Object) GetList(field string) ([]interface{}, error) + func (object Object) GetListStrings(field string) ([]string, error) + func (object Object) GetListStringsOrString(field string) ([]string, error) + func (object Object) GetMapStringString(field string) (map[string]string, error) + func (object Object) GetObject(field string) (Object, error) + func (object Object) GetString(field string) (string, error) + func (object Object) HasField(field string) bool + func (object Object) ToMapStringString() (map[string]string, error) + func NewObject(thing interface{}) (Object, error)