Skip to content

Instantly share code, notes, and snippets.

Avatar

Drew Olson drewolson

View GitHub Profile
@drewolson
drewolson / reflection.go
Last active June 24, 2023 18:24
Golang Reflection Example
View reflection.go
package main
import (
"fmt"
"reflect"
)
type Foo struct {
FirstName string `tag_name:"tag 1"`
LastName string `tag_name:"tag 2"`