add functions to test struct

This commit is contained in:
Joel Wetzell
2026-03-01 21:44:41 -06:00
parent 695cabf15e
commit b653179e6d

View File

@@ -16,6 +16,22 @@ type TestStruct struct {
Data any
}
func (t TestStruct) GetString() string {
return t.String
}
func (t TestStruct) GetInt() int {
return t.Int
}
func (t TestStruct) GetFloat() float64 {
return t.Float
}
func (t TestStruct) GetBool() bool {
return t.Bool
}
func (t TestStruct) GetData() any {
return t.Data
}