We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5e9644 commit 4e640c9Copy full SHA for 4e640c9
OpenSesame_main.go
@@ -30,13 +30,13 @@ func main() {
30
return c.SendString("Hello, World 👋!")
31
})
32
d := fmt.Sprintf("/%d", randInt(MinVal, MaxUint32))
33
- log.Printf("Serving at http://localhost:3000" + d)
+ log.Printf("Serving at http://localhost%s%s", Opts.Port, d)
34
35
- app.Static(d, "./", fiber.Static{
+ app.Static(d, Opts.Path, fiber.Static{
36
Browse: true,
37
38
39
- log.Fatal(app.Listen(":3000"))
+ log.Fatal(app.Listen(Opts.Port))
40
}
41
42
//==========================================================================
0 commit comments