Created
May 11, 2015 10:36
-
-
Save keizo042/4fe0abbd07db73bc519e to your computer and use it in GitHub Desktop.
Restricted Wordsその二
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
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