Initial Commit

This commit is contained in:
Benjamin Ritter
2023-12-20 17:06:44 +01:00
parent 061998ed41
commit d6f7aebce2
5 changed files with 83 additions and 0 deletions

23
main.go Normal file
View File

@@ -0,0 +1,23 @@
package main
import (
"fmt"
"log"
"os"
"github.com/gofiber/fiber/v2"
)
func main() {
app := fiber.New()
app.Get("/", func (c *fiber.Ctx) error {
hostname, err := os.Hostname()
if err != nil {
panic(err)
}
return c.SendString(fmt.Sprintf("Hello world from pod %v", hostname))
})
log.Fatal(app.Listen(":3000"))
}