1 2 3 4 5 6 7 8 9 10 11
package main import ( "net/http" ) func main() { fs := http.FileServer(http.Dir("./src")) http.Handle("/", fs) http.ListenAndServe(":8082", nil) }