Wednesday, July 02, 2014

Go Lang: Web Server

Writing Web Applications - The Go Programming Language
Here's a full working example of a simple web server:
package main

import (

func handler(w http.ResponseWriter, r *http.Request) {
    fmt.Fprintf(w, "Hi there, I love %s!", r.URL.Path[1:])

func main() {
    http.HandleFunc("/", handler)
    http.ListenAndServe(":8080", nil)

IMAX HD: National Parks of North America

National Parks of North America IMAX HD by husky40 - YouTube

I hope YouTube has figured out how to compensate IMAX, creators of such majestic videos...
Or this is just a "free advertising..."