Skip to content

Instantly share code, notes, and snippets.

@keizo042
Created May 11, 2015 10:36
Show Gist options
  • Save keizo042/4fe0abbd07db73bc519e to your computer and use it in GitHub Desktop.
Save keizo042/4fe0abbd07db73bc519e to your computer and use it in GitHub Desktop.
Restricted Wordsその二
package main
import (
"fmt"
"reflect"
)
type Hello struct {
a int `hello world`
}
func main() {
h := &Hello{}
var zero int
r := reflect.TypeOf(*h)
fmt.Println(r.Field(zero).Tag)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment