mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-27 05:15:47 +00:00
add functions to test struct
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user