Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Simple hello world in Go for Medium post
package main
import (
func main() {
http.HandleFunc("/", func(res http.ResponseWriter, req *http.Request) {
fmt.Fprint(res, "Hello World")
log.Println("Go Hello World listening on port 8123")
http.ListenAndServe(":8123", nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment