Created
December 22, 2015 10:41
-
-
Save tbillington/7285687c6c343aa8c680 to your computer and use it in GitHub Desktop.
golang thing
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
stuff := map[string]binFunc{} | |
for _, p := range jsonParts.Parts { | |
fmt.Println(p) | |
stuff[p.Type] = func() { | |
return func(data interface{}) { | |
fmt.Println(p.Args) | |
fmt.Println(p.Properties) | |
} | |
}() | |
} | |
// src/main.go:9: too many arguments to return | |
// src/main.go:10: (func literal)() used as value |
dhowden
commented
Dec 22, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment