This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Go | |
export GOOS=linux | |
export GOARCH=amd64 | |
export GOROOT=$HOME/dev/go | |
export GOBIN=$GOROOT/bin | |
export GOPATH=$HOME/dev/gopath | |
export PATH=$PATH:$GOBIN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/gob" | |
"net/http" | |
"code.google.com/p/gorilla/sessions" | |
"log" | |
) | |
var store = sessions.NewCookieStore([]byte("something-very-secret")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package foo | |
import ( | |
"reflect" | |
"appengine" | |
"appengine/datastore" | |
) | |
var ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
type Node struct { | |
Value int | |
} |
NewerOlder