Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 13, 2021 01:35
Embed
What would you like to do?
package main
import "log"
import "net/http"
func main() {
directorio := "./static"
http.Handle("/", http.FileServer(http.Dir(directorio)))
direccion := ":8000"
log.Println("Servidor listo escuchando en " + direccion)
log.Fatal(http.ListenAndServe(direccion, nil))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment