add port argument

This commit is contained in:
cynic 2024-06-13 21:03:17 +00:00
parent 5bbc9b922c
commit a1d3313299

View File

@ -33,7 +33,7 @@ func main() {
if len(os.Args) > 1 {
listenPort = os.Args[1]
}
print("Listening on port:", listenPort, "\n")
print("Listening on port: ", listenPort, "\n")
listenPort = strings.Join([]string{":", listenPort}, "")
http.ListenAndServe(listenPort, nil)
}