Documentation ¶
Index ¶
- Variables
- func Contains(s []string, e string) bool
- func Differences(a, b []string) []string
- func IsCI() bool
- func IsCygwinTerminal(f *os.File) bool
- func MakePath(path string) error
- func Pluralize(num int, thing string) string
- func SliceToReadableString(str []string) string
- func SliceToString(str []string) string
- func StringToSlice(str string) []string
- func ToKebabCase(str string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var IsTerminal = func(f *os.File) bool { return isatty.IsTerminal(f.Fd()) || IsCygwinTerminal(f) }
Functions ¶
func Differences ¶ added in v1.6.0
Differences return the elements in `a` that aren't in `b`
func IsCI ¶ added in v1.3.0
func IsCI() bool
based on https://github.com/watson/ci-info/blob/HEAD/index.js
func IsCygwinTerminal ¶
func SliceToReadableString ¶ added in v1.3.0
Convert slice of string to a readable string eg: ["one", "two", "three"] -> "one, two and three"
func SliceToString ¶ added in v1.2.1
Convert slice of string to comma separated string
func StringToSlice ¶ added in v1.2.1
Convert comma separated string values to slice
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.