Linked by Thom Holwerda on Wed 28th Mar 2012 19:22 UTC
General Development "Today marks a major milestone in the development of the Go programming language. We're announcing Go version 1, or Go 1 for short, which defines a language and a set of core libraries to provide a stable foundation for creating reliable products, projects, and publications. Go 1 is the first release of Go that is available in supported binary distributions. They are available for Linux, FreeBSD, Mac OS X and, we are thrilled to announce, Windows."
Permalink for comment 512513
To read all comments associated with this story, please click here.
RE[6]: Too bad it is so slow
by kalcytriol on Fri 30th Mar 2012 23:07 UTC in reply to "RE[5]: Too bad it is so slow"
Member since:

Nothing special, just:

hello.go ----------------------------------------------
package main

import (

var hellostr string="HelloWorld"
var hellolen string=strconv.Itoa(len(hellostr))

func handler(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/plain; charset=UTF-8")
w.Header().Set("Content-Length", hellolen) // this icreases server performance 2x ,from 11kRPS to 22k RPS (requests per second)
fmt.Fprintf(w, hellostr);

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

Reply Parent Score: 1