Skip to content

Instantly share code, notes, and snippets.

View drewolson's full-sized avatar

Drew Olson drewolson

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