Created
December 22, 2015 11:01
-
-
Save tbillington/6a41f15e8741e66590b7 to your computer and use it in GitHub Desktop.
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
for _, p := range jsonParts.Parts { | |
fmt.Println(p) | |
stuff[p.Type] = func(p part) { | |
return func(data interface{}) { | |
fmt.Println(p.Args) | |
fmt.Println(p.Properties) | |
} | |
}(p) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment