1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 12:57:05 +00:00
This commit is contained in:
Gerasimos (Makis) Maropoulos
2021-01-09 05:41:20 +02:00
parent 72c2dafd2e
commit 8aedf6bc32
36 changed files with 99 additions and 130 deletions

View File

@@ -19,7 +19,7 @@ func Param(name string) string {
// WildcardParam receives a parameter name prefixed with the WildcardParamStart symbol.
func WildcardParam(name string) string {
if len(name) == 0 {
if name == "" {
return ""
}
return prefix(name, WildcardParamStart)