Skip to content

Commit 4e640c9

Browse files
committed
- [+] update OpenSesame_main.go using cli wireframe
1 parent b5e9644 commit 4e640c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

OpenSesame_main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ func main() {
3030
return c.SendString("Hello, World 👋!")
3131
})
3232
d := fmt.Sprintf("/%d", randInt(MinVal, MaxUint32))
33-
log.Printf("Serving at http://localhost:3000" + d)
33+
log.Printf("Serving at http://localhost%s%s", Opts.Port, d)
3434

35-
app.Static(d, "./", fiber.Static{
35+
app.Static(d, Opts.Path, fiber.Static{
3636
Browse: true,
3737
})
3838

39-
log.Fatal(app.Listen(":3000"))
39+
log.Fatal(app.Listen(Opts.Port))
4040
}
4141

4242
//==========================================================================

0 commit comments

Comments
 (0)