{"modulePath":"github.phpd.cn/thought-machine/please","version":"v13.4.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package utils\n\nPackage utils contains various utility functions and whatnot.\n\n## Functions\n\n```go\nfunc AddAll(map1 map[string]string, map2 map[string]string) map[string]string\n```\nAddAll adds all of one map\\[string]string to another.\n\n```go\nfunc FindAllSubpackages(config *core.Configuration, rootPath string, prefix string) \u003c-chan string\n```\nFindAllSubpackages finds all packages under a particular path. Used to implement rules with ... where we need to know all possible packages under that location.\n\n```go\nfunc InitConfig(dir string, bazelCompatibility bool)\n```\nInitConfig initialises a .plzconfig template in the given directory.\n\n```go\nfunc InitConfigFile(filename string, options map[string]string)\n```\nInitConfigFile sets a bunch of values in a config file.\n\n```go\nfunc Max(x, y int) int\n```\nMax returns the larger of two ints.\n\n```go\nfunc PrettyPrintSuggestion(needle string, haystack []string, maxSuggestionDistance int) string\n```\nPrettyPrintSuggestion implements levenshtein-based suggestions on a sequence of items and produces a single message from them.\n\n```go\nfunc PrintCompletionScript()\n```\nPrintCompletionScript prints Please's completion script to stdout.\n\n```go\nfunc Suggest(needle string, haystack []string, maxSuggestionDistance int) []string\n```\nSuggest implements levenshtein-based suggestions on a sequence of items.\n\n","path":"github.phpd.cn/thought-machine/please/src/utils","name":"utils","synopsis":"Package utils contains various utility functions and whatnot.","isRedistributable":true}
