Documentation
¶
Index ¶
- Constants
- Variables
- func Abs(rel string) string
- func All[T any](s []T, test func(T) bool) bool
- func Any[T any](s []T, test func(T) bool) bool
- func Contains(s []string, v string) bool
- func Filter[T any](s []T, test func(T) bool) []T
- func FormatMap(m map[string]string, separator string, alignRight bool) string
- func GetCaptures(re *regexp.Regexp, findAll bool, capture string, s string) ([]string, error)
- func GetURLsFromArgs(args []string) ([]string, hcl.Diagnostics)
- func Getwd() error
- func HasNamedCaptures(re *regexp.Regexp) (bool, []string)
- func IsValidURL(str string) (*url.URL, bool)
- func ParseURLList(contents, filename string) ([]string, hcl.Diagnostics)
- func Plural(count int, singular string, plural string) string
- func PrintDiag(w io.Writer, diag *hcl.Diagnostic)
- func Unique(s []string) []string
- func ZipMap(keys []string, values []string) map[string]string
- type AbstractIoUtil
- type IoUtil
Constants ¶
View Source
const ( DiagInvalid hcl.DiagnosticSeverity = iota DiagError DiagWarning DiagInfo DiagDebug )
Variables ¶
View Source
var ( Fs afero.Fs = afero.NewOsFs() Io AbstractIoUtil = &IoUtil{} Wd string = "" )
View Source
var ErrSilent = errors.New("ErrSilent")
Functions ¶
func GetCaptures ¶
"findAll" gives back multiple matches. if set to false, only the first match is captured capture is either the group index as a string or the group name
func GetURLsFromArgs ¶
func ParseURLList ¶
Types ¶
type AbstractIoUtil ¶ added in v0.1.6
Click to show internal directories.
Click to hide internal directories.