Skip to content

Instantly share code, notes, and snippets.

@kavu
Created March 20, 2013 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kavu/5204803 to your computer and use it in GitHub Desktop.
Save kavu/5204803 to your computer and use it in GitHub Desktop.
Go Reflection
func(t reflect.Type) {
log.Printf("%+v", t.Field(0).Tag.Get("woot"))
}(reflect.TypeOf(Dummy{1}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment