mirror of https://github.com/gofiber/fiber.git
Update README_NEW.md
parent
ee0bdc7cef
commit
e03b7fc696
|
@ -14,15 +14,12 @@ package main
|
||||||
import "github.com/gofiber/fiber"
|
import "github.com/gofiber/fiber"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// Create new Fiber instance
|
|
||||||
app := fiber.New()
|
app := fiber.New()
|
||||||
|
|
||||||
// Create new route with GET method
|
|
||||||
app.Get("/", func(c *fiber.Ctx) {
|
app.Get("/", func(c *fiber.Ctx) {
|
||||||
c.Write("Hello, World!")
|
c.Send("Hello, World!")
|
||||||
})
|
})
|
||||||
|
|
||||||
// Start server on http://localhost:3000
|
|
||||||
app.Listen(3000)
|
app.Listen(3000)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue