func main() { fmt.Println("Try http://0.0.0.0:8080/ -> /index.html will work as expected\n") // The content of multiple static directories gets merged under / view.Config.StaticDirs = []string{"static-dir-a", "static-dir-b"} view.RunServerAddr("0.0.0.0:8080", nil) }
func main() { absPath, _ := filepath.Abs(".") fmt.Printf("Serving %s/ at http://0.0.0.0:8080/\n", absPath) view.Config.StaticDirs = []string{"."} view.RunServerAddr("0.0.0.0:8080", nil) }