This is the most basic form of HTTP server. Type go run filename.go and the server is active, accepting incoming requests. The handler function takes a ResponseWriter interface, which allows us to write back to the client, and the details of the HTTP request .