3 ms·
Could someone explain that to me? http.Handle("/", http.FileServer("static/", "/")) if err := http.ListenAndServe(":3000", nil); ... Does the http module
by ch0wn 16y ago
Could someone explain that to me?
http.Handle("/", http.FileServer("static/", "/"))
if err := http.ListenAndServe(":3000", nil); ...
Does the http module keep track of the routes within the module state? This seems like a horrible idea coming from python. How does this work in Go? Is it possible to run two HTTP servers in parallel using threads with this model?