-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove C++ project and use Go as alternative
- Loading branch information
1 parent
e630217
commit 3a2f816
Showing
5 changed files
with
18 additions
and
329 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package main | ||
|
||
import ( | ||
"flag" | ||
"log" | ||
"net/http" | ||
) | ||
|
||
func main() { | ||
port := flag.String("p", "8080", "port to serve on") | ||
directory := flag.String("d", ".", "the directory of static file to host") | ||
flag.Parse() | ||
|
||
http.Handle("/", http.FileServer(http.Dir(*directory))) | ||
|
||
log.Printf("Serving %s on HTTP port: %s\n", *directory, *port) | ||
log.Fatal(http.ListenAndServe(":"+*port, nil)) | ||
} |
This file was deleted.
Oops, something went wrong.