View on GitHub

notes

A collection of my TIL notes and commonplace book entries.

Static Web Server

package main

import "net/http"

func main() {
  http.ListenAndServe(":8000", http.FileServer(http.Dir("public")))
}