Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/archlinux-de/pkgstats-cli
/ ValidatePackageNames
Function
ValidatePackageNames
internal/api/request/validator.go:39–47 ·
view source on GitHub ↗
(names []string)
Source
from the content-addressed store, hash-verified
37
}
38
39
func
ValidatePackageNames(names []string) error {
40
for
_, name :=
range
names {
41
if
err := ValidatePackageName(name); err != nil {
42
return
fmt.Errorf(
"'%s' is invalid: %w"
, name, err)
43
}
44
}
45
46
return
nil
47
}
Callers
3
TestValidPackageNames
Function · 0.92
TestInvalidPackageNames
Function · 0.92
newShowCmd
Function · 0.92
Calls
1
ValidatePackageName
Function · 0.85
Tested by
2
TestValidPackageNames
Function · 0.74
TestInvalidPackageNames
Function · 0.74