Skip to content

Instantly share code, notes, and snippets.

View hmmftg's full-sized avatar
🇵🇸
Help children in Palestine

حمید ملک محمدی Stand with Palestine hmmftg

🇵🇸
Help children in Palestine
  • PooyaCo. Inc.
  • Iran
View GitHub Profile
@hmmftg
hmmftg / serve.go
Last active December 11, 2023 05:38 — forked from paulmach/serve.go
Simple Static File Server in Go
/*
Serve is a very simple static file server in go
Usage:
-p="8100": port to serve on
-d=".": the directory of static files to host
-b="/": the base URL to host
Navigating to http://localhost:8100 will display the index.html or directory
listing file.