<!-- lang: cpp --> package main import ( "fmt" "net/http" "os" ) func main(){ fileServer := http.FileServer(http.Dir("./")) err := http.ListenAndServe(":3000",fileServer) if err != nil { fmt.Println("some error",err.Error()) os.Exit(1) } }
<!-- lang: cpp --> package main import ( "fmt" "net/http" "os" ) func main(){ fileServer := http.FileServer(http.Dir("./")) err := http.ListenAndServe(":3000",fileServer) if err != nil { fmt.Println("some error",err.Error()) os.Exit(1) } }