Here's an example code snippet to create an HTTP server in Go and parse cookies to return a JSON response:
main.go1031 chars44 linesTo run this code, save it in a file called main.go, open a terminal session in the same directory and run go run main.go. This will start the HTTP server on http://localhost:8080.
gistlibby LogSnag