I'm learning Golang and to practice I'm doing some small "projects", my idea is to just share a folder from my windows or some file through my local wifi network using Golang's net / http package. I used this little code below to "upar" a folder and then to access my cell phone or notebook through the ip address.
import (
"log"
"net/http"
)
func main() {
http.Handle("/", http.FileServer(http.Dir("C:\VIDEOS")))
log.Fatal(http.ListenAndServe(":8080", nil))
}
The code works and I can access the files through the browser on my PC, but I would like to know how I can "free" access to other devices on my network accessing the files as well.