“Cómo servir CSS en Golang” Código de respuesta

Cómo servir CSS en Golang

// if you keep all css and js in a static folder
// you can use this

func main() {
  http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
}
Doubtful Dragonfly

Cómo servir CSS a través de Go

http.Handle("/", http.FileServer(http.Dir("css/")))
Relieved Ray

Respuestas similares a “Cómo servir CSS en Golang”

Preguntas similares a “Cómo servir CSS en Golang”

Más respuestas relacionadas con “Cómo servir CSS en Golang” en CSS

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código