mirror of
https://github.com/gofiber/fiber.git
synced 2025-02-21 20:13:22 +00:00
📖 update readme
This commit is contained in:
parent
1a3bd53e1c
commit
7576f806c9
16
.github/README.md
vendored
16
.github/README.md
vendored
@ -90,7 +90,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -176,7 +176,7 @@ func main() {
|
||||
return c.SendString(msg) // => ✋ /api/register
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -198,7 +198,7 @@ func main() {
|
||||
app.Static("*", "./public/index.html")
|
||||
// => http://localhost:3000/any/path/shows/index/html
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -227,7 +227,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -269,7 +269,7 @@ func main() {
|
||||
})
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -386,7 +386,7 @@ func main() {
|
||||
// => 404 "Not Found"
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -416,7 +416,7 @@ func main() {
|
||||
// => {"success":true, "message":"Hi John!"}
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -473,7 +473,7 @@ func main() {
|
||||
panic("normally this would crash your app")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</details>
|
||||
|
16
.github/README_ar_SA.md
vendored
16
.github/README_ar_SA.md
vendored
@ -95,7 +95,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -194,7 +194,7 @@ func main() {
|
||||
return c.SendString(msg) // => ✋ /api/register
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -220,7 +220,7 @@ func main() {
|
||||
app.Static("*", "./public/index.html")
|
||||
// => http://localhost:3000/any/path/shows/index/html
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -252,7 +252,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -299,7 +299,7 @@ func main() {
|
||||
})
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -437,7 +437,7 @@ func main() {
|
||||
// => 404 "Not Found"
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</div>
|
||||
@ -470,7 +470,7 @@ func main() {
|
||||
// => {"success":true, "message":"Hi John!"}
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</div>
|
||||
@ -536,7 +536,7 @@ func main() {
|
||||
panic("normally this would crash your app")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</div>
|
||||
|
16
.github/README_de.md
vendored
16
.github/README_de.md
vendored
@ -90,7 +90,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -176,7 +176,7 @@ func main() {
|
||||
return c.SendString(msg) // => ✋ /api/register
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -198,7 +198,7 @@ func main() {
|
||||
app.Static("*", "./public/index.html")
|
||||
// => http://localhost:3000/any/path/shows/index/html
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -227,7 +227,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -269,7 +269,7 @@ func main() {
|
||||
})
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -386,7 +386,7 @@ func main() {
|
||||
// => 404 "Not Found"
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -416,7 +416,7 @@ func main() {
|
||||
// => {"success":true, "message":"Hi John!"}
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -473,7 +473,7 @@ func main() {
|
||||
panic("normally this would crash your app")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</details>
|
||||
|
16
.github/README_es.md
vendored
16
.github/README_es.md
vendored
@ -90,7 +90,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -176,7 +176,7 @@ func main() {
|
||||
return c.SendString(msg) // => ✋ /api/register
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -198,7 +198,7 @@ func main() {
|
||||
app.Static("*", "./public/index.html")
|
||||
// => http://localhost:3000/any/path/shows/index/html
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -227,7 +227,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -269,7 +269,7 @@ func main() {
|
||||
})
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -386,7 +386,7 @@ func main() {
|
||||
// => 404 "Not Found"
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -416,7 +416,7 @@ func main() {
|
||||
// => {"success":true, "message":"Hi John!"}
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -473,7 +473,7 @@ func main() {
|
||||
panic("normally this would crash your app")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</details>
|
||||
|
16
.github/README_fr.md
vendored
16
.github/README_fr.md
vendored
@ -90,7 +90,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -176,7 +176,7 @@ func main() {
|
||||
return c.SendString(msg) // => ✋ /api/register
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -198,7 +198,7 @@ func main() {
|
||||
app.Static("*", "./public/index.html")
|
||||
// => http://localhost:3000/any/path/shows/index/html
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -227,7 +227,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -269,7 +269,7 @@ func main() {
|
||||
})
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -386,7 +386,7 @@ func main() {
|
||||
// => 404 "Not Found"
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -416,7 +416,7 @@ func main() {
|
||||
// => {"success":true, "message":"Hi John!"}
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -473,7 +473,7 @@ func main() {
|
||||
panic("normally this would crash your app")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</details>
|
||||
|
16
.github/README_he.md
vendored
16
.github/README_he.md
vendored
@ -97,7 +97,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -227,7 +227,7 @@ func main() {
|
||||
return c.SendString(msg) // => ✋ /api/register
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -252,7 +252,7 @@ func main() {
|
||||
app.Static("*", "./public/index.html")
|
||||
// => http://localhost:3000/any/path/shows/index/html
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -284,7 +284,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -330,7 +330,7 @@ func main() {
|
||||
})
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</div>
|
||||
@ -463,7 +463,7 @@ func main() {
|
||||
// => 404 "Not Found"
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</div>
|
||||
@ -496,7 +496,7 @@ func main() {
|
||||
// => {"success":true, "message":"Hi John!"}
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</div>
|
||||
@ -559,7 +559,7 @@ func main() {
|
||||
panic("normally this would crash your app")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</div>
|
||||
|
16
.github/README_id.md
vendored
16
.github/README_id.md
vendored
@ -90,7 +90,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -178,7 +178,7 @@ func main() {
|
||||
return c.SendString(msg) // => ✋ /api/register
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -200,7 +200,7 @@ func main() {
|
||||
app.Static("*", "./public/index.html")
|
||||
// => http://localhost:3000/any/path/shows/index/html
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -229,7 +229,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -271,7 +271,7 @@ func main() {
|
||||
})
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -388,7 +388,7 @@ func main() {
|
||||
// => 404 "Not Found"
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -418,7 +418,7 @@ func main() {
|
||||
// => {"success":true, "message":"Hi John!"}
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -475,7 +475,7 @@ func main() {
|
||||
panic("normally this would crash your app")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</details>
|
||||
|
16
.github/README_ja.md
vendored
16
.github/README_ja.md
vendored
@ -91,7 +91,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
## 🤖 ベンチマーク
|
||||
@ -179,7 +179,7 @@ func main() {
|
||||
return c.SendString(msg) // => ✋ /api/register
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -201,7 +201,7 @@ func main() {
|
||||
app.Static("*", "./public/index.html")
|
||||
// => http://localhost:3000/any/path/shows/index/html
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -230,7 +230,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -272,7 +272,7 @@ func main() {
|
||||
})
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -389,7 +389,7 @@ func main() {
|
||||
// => 404 "Not Found"
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -419,7 +419,7 @@ func main() {
|
||||
// => {"success":true, "message":"Hi John!"}
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -476,7 +476,7 @@ func main() {
|
||||
panic("normally this would crash your app")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</details>
|
||||
|
16
.github/README_ko.md
vendored
16
.github/README_ko.md
vendored
@ -90,7 +90,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -181,7 +181,7 @@ func main() {
|
||||
return c.SendString(msg) // => ✋ /api/register
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -203,7 +203,7 @@ func main() {
|
||||
app.Static("*", "./public/index.html")
|
||||
// => http://localhost:3000/any/path/shows/index/html
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -232,7 +232,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -274,7 +274,7 @@ func main() {
|
||||
})
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -391,7 +391,7 @@ func main() {
|
||||
// => 404 "Not Found"
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -421,7 +421,7 @@ func main() {
|
||||
// => {"success":true, "message":"Hi John!"}
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -478,7 +478,7 @@ func main() {
|
||||
panic("normally this would crash your app")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</details>
|
||||
|
16
.github/README_nl.md
vendored
16
.github/README_nl.md
vendored
@ -90,7 +90,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -180,7 +180,7 @@ func main() {
|
||||
return c.SendString(msg) // => ✋ /api/register
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -202,7 +202,7 @@ func main() {
|
||||
app.Static("*", "./public/index.html")
|
||||
// => http://localhost:3000/any/path/shows/index/html
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -231,7 +231,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -273,7 +273,7 @@ func main() {
|
||||
})
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -390,7 +390,7 @@ func main() {
|
||||
// => 404 "Not Found"
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -420,7 +420,7 @@ func main() {
|
||||
// => {"success":true, "message":"Hi John!"}
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -477,7 +477,7 @@ func main() {
|
||||
panic("normally this would crash your app")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</details>
|
||||
|
16
.github/README_pt.md
vendored
16
.github/README_pt.md
vendored
@ -90,7 +90,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -176,7 +176,7 @@ func main() {
|
||||
return c.SendString(msg) // => ✋ /api/register
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -198,7 +198,7 @@ func main() {
|
||||
app.Static("*", "./public/index.html")
|
||||
// => http://localhost:3000/any/path/shows/index/html
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -227,7 +227,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -267,7 +267,7 @@ func main() {
|
||||
})
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -384,7 +384,7 @@ func main() {
|
||||
// => 404 "Not Found"
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -414,7 +414,7 @@ func main() {
|
||||
// => {"success":true, "message":"Hi John!"}
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -471,7 +471,7 @@ func main() {
|
||||
panic("normally this would crash your app")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</details>
|
||||
|
16
.github/README_ru.md
vendored
16
.github/README_ru.md
vendored
@ -90,7 +90,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -178,7 +178,7 @@ func main() {
|
||||
return c.SendString(msg) // => ✋ /api/register
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -200,7 +200,7 @@ func main() {
|
||||
app.Static("*", "./public/index.html")
|
||||
// => http://localhost:3000/any/path/shows/index/html
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -229,7 +229,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -271,7 +271,7 @@ func main() {
|
||||
})
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -388,7 +388,7 @@ func main() {
|
||||
// => 404 "Not Found"
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -418,7 +418,7 @@ func main() {
|
||||
// => {"success":true, "message":"Hi John!"}
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -475,7 +475,7 @@ func main() {
|
||||
panic("normally this would crash your app")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</details>
|
||||
|
16
.github/README_tr.md
vendored
16
.github/README_tr.md
vendored
@ -90,7 +90,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -174,7 +174,7 @@ func main() {
|
||||
return c.SendString(msg) // => ✋ /api/register
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -196,7 +196,7 @@ func main() {
|
||||
app.Static("*", "./public/index.html")
|
||||
// => http://localhost:3000/any/path/shows/index/html
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -225,7 +225,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -267,7 +267,7 @@ func main() {
|
||||
})
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -383,7 +383,7 @@ func main() {
|
||||
// => 404 "Not Found"
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -413,7 +413,7 @@ func main() {
|
||||
// => {"success":true, "message":"Hi John!"}
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -470,7 +470,7 @@ func main() {
|
||||
panic("normally this would crash your app")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</details>
|
||||
|
16
.github/README_zh-CN.md
vendored
16
.github/README_zh-CN.md
vendored
@ -90,7 +90,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -179,7 +179,7 @@ func main() {
|
||||
return c.SendString(msg) // => ✋ /api/register
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -201,7 +201,7 @@ func main() {
|
||||
app.Static("*", "./public/index.html")
|
||||
// => http://localhost:3000/any/path/shows/index/html
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -230,7 +230,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -272,7 +272,7 @@ func main() {
|
||||
})
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -388,7 +388,7 @@ func main() {
|
||||
// => 404 "Not Found"
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -418,7 +418,7 @@ func main() {
|
||||
// => {"success":true, "message":"Hi John!"}
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -475,7 +475,7 @@ func main() {
|
||||
panic("normally this would crash your app")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</details>
|
||||
|
16
.github/README_zh-TW.md
vendored
16
.github/README_zh-TW.md
vendored
@ -90,7 +90,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -178,7 +178,7 @@ func main() {
|
||||
return c.SendString(msg) // => ✋ /api/register
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -200,7 +200,7 @@ func main() {
|
||||
app.Static("*", "./public/index.html")
|
||||
// => http://localhost:3000/any/path/shows/index/html
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -229,7 +229,7 @@ func main() {
|
||||
return c.SendString("Hello, World 👋!")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -269,7 +269,7 @@ func main() {
|
||||
})
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
|
||||
```
|
||||
@ -387,7 +387,7 @@ func main() {
|
||||
// => 404 "Not Found"
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -417,7 +417,7 @@ func main() {
|
||||
// => {"success":true, "message":"Hi John!"}
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -474,7 +474,7 @@ func main() {
|
||||
panic("normally this would crash your app")
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
</details>
|
||||
|
@ -59,7 +59,7 @@ func main() {
|
||||
Root: packr.New("Assets Box", "/assets"),
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -83,7 +83,7 @@ func main() {
|
||||
Root: rice.MustFindBox("assets").HTTPBox(),
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -107,7 +107,7 @@ func main() {
|
||||
Root: myEmbeddedFiles.HTTP,
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
@ -137,7 +137,7 @@ func main() {
|
||||
Root: statikFS,
|
||||
})
|
||||
|
||||
app.Listen(":3000")
|
||||
log.Fatal(app.Listen(":3000"))
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user