Skip to content

Instantly share code, notes, and snippets.

@jswank
jswank / nil-map.go
Created November 11, 2011 01:07
Struct w/ nil-map; Printf w/ bool values
package main
import "fmt"
type Foo struct {
exists map[string] bool
}
func newFoo() (*Foo) {
exists := make(map[string] bool)
@jswank
jswank / go-hello-world.go
Created November 11, 2011 00:57
Hello World- Go
package "main"
import "fmt"
func main() {
fmt.Println("Hello World!")
}