Skip to content

Instantly share code, notes, and snippets.

@DasonYang
DasonYang / reflection.go
Created February 1, 2018 08:18 — forked from drewolson/reflection.go
Golang Reflection Example
package main
import (
"fmt"
"reflect"
)
type Foo struct {
FirstName string `tag_name:"tag 1"`
LastName string `tag_name:"tag 2"`