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 November 20, 2023 09:39
Golang Reflection Example
package main
import (
"fmt"
"reflect"
)
type Foo struct {
FirstName string `tag_name:"tag 1"`
LastName string `tag_name:"tag 2"`