mirror of https://github.com/gofiber/fiber.git
Fix build breaking with Go 1.11
strings.ReplaceAll is only supported in Go 1.12 and newer.pull/542/head
parent
a092d0d40a
commit
081a44323d
|
@ -141,7 +141,7 @@ func usage() {
|
|||
// for both 4- and 8-space tab stops.
|
||||
s += "\n \t"
|
||||
}
|
||||
s += strings.ReplaceAll(usage, "\n", "\n \t")
|
||||
s += strings.Replace(usage, "\n", "\n \t", -1)
|
||||
|
||||
if !isZeroValue(f, f.DefValue) {
|
||||
if _, ok := f.Value.(*stringValue); ok {
|
||||
|
|
Loading…
Reference in New Issue