mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 09:37:02 +00:00
stringutil: fix golint comment format error (#429)
Signed-off-by: James Hillyerd <james@hillyerd.com>
This commit is contained in:
3
Makefile
3
Makefile
@@ -32,8 +32,11 @@ simplify:
|
|||||||
@gofmt -s -l -w $(SRC)
|
@gofmt -s -l -w $(SRC)
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
|
@echo "gofmt check..."
|
||||||
@test -z "$(shell gofmt -l . | tee /dev/stderr)" || echo "[WARN] Fix formatting issues with 'make fmt'"
|
@test -z "$(shell gofmt -l . | tee /dev/stderr)" || echo "[WARN] Fix formatting issues with 'make fmt'"
|
||||||
|
@echo "golint check..."
|
||||||
@golint -set_exit_status $(PKGS)
|
@golint -set_exit_status $(PKGS)
|
||||||
|
@echo "go vet check..."
|
||||||
@go vet $(PKGS)
|
@go vet $(PKGS)
|
||||||
|
|
||||||
reflex:
|
reflex:
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ func MakePathPrefixer(prefix string) func(string) string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test if a "s" string match a "p" pattern with wildcards (*, ?)
|
// MatchWithWildcards tests if a "s" string matches a "p" pattern with wildcards (*, ?)
|
||||||
func MatchWithWildcards(p string, s string) bool {
|
func MatchWithWildcards(p string, s string) bool {
|
||||||
runeInput := []rune(s)
|
runeInput := []rune(s)
|
||||||
runePattern := []rune(p)
|
runePattern := []rune(p)
|
||||||
|
|||||||
Reference in New Issue
Block a user