/go-http

Setting up a HTTP server in Go

Primary LanguageHTML

HTTP Server in Go

  • Set up a HTTP server in Go
  • Serve static files
    • Image
    • Text
  • Templates

Go Packages:

  • "net/http"
  • "http.FileServer"

File System:

go.mod
main.go
public
├── about.html
├── css
│   └── format.css
├── img
│   └── test.jpeg
└── index.html
layout.html