Versions in this module Expand all Collapse all v0 v0.52.0 Sep 29, 2022 Changes in this version + const ApplicationName + const JSONSchemaVersion + var ArchiveMIMETypeSet = strset.New([]string{ ... }) + var ExecutableMIMETypeSet = strset.New([]string{ ... }) + func CloseAndLogError(closer io.Closer, location string) + func HasAnyOfPrefixes(input string, prefixes ...string) bool + func IsArchive(mimeType string) bool + func IsErrPath(err error) bool + func IsErrPathPermission(err error) bool + func IsExecutable(mimeType string) bool + func IsPipedInput() (bool, error) + func IsTerminal() bool + func MatchNamedCaptureGroups(regEx *regexp.Regexp, content string) map[string]string + func Tprintf(tmpl string, data map[string]interface{}) string + func TruncateMiddleEllipsis(input string, maxLen int) string + type ErrPath struct + Context string + Err error + Path string + func (e ErrPath) Error() string + type StringSet map[string]struct + func NewStringSet(start ...string) StringSet + func (s StringSet) Add(i string) + func (s StringSet) Contains(i string) bool + func (s StringSet) Remove(i string) + func (s StringSet) ToSlice() []string