summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2023-08-29 11:37:33 -0400
committerCara Salter <cara@devcara.com>2023-08-29 11:37:33 -0400
commiteb882d0cb6f497d6f083956e6400cb09efadbf41 (patch)
treed9928cb024c08e98cf1e019fa7e8deed7da820e8 /main.go
downloadhkgi-eb882d0cb6f497d6f083956e6400cb09efadbf41.tar.gz
hkgi-eb882d0cb6f497d6f083956e6400cb09efadbf41.zip
initial commit
Diffstat (limited to 'main.go')
-rw-r--r--main.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/main.go b/main.go
new file mode 100644
index 0000000..ff9ce8e
--- /dev/null
+++ b/main.go
@@ -0,0 +1,13 @@
+package main
+
+import "github.com/gofiber/fiber/v2"
+
+func main() {
+ app := fiber.New()
+
+ app.Get("/", func(c *fiber.Ctx) error {
+ return c.JSON(&fiber.Map{"data": "Hello from Fiber!"})
+ })
+
+ app.Listen(":6000")
+}