mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
add test for slice to struct get processors
This commit is contained in:
@@ -10,11 +10,12 @@ import (
|
||||
)
|
||||
|
||||
type TestStruct struct {
|
||||
String string
|
||||
Int int
|
||||
Float float64
|
||||
Bool bool
|
||||
Data any
|
||||
String string
|
||||
Int int
|
||||
Float float64
|
||||
Bool bool
|
||||
Data any
|
||||
IntSlice []int
|
||||
}
|
||||
|
||||
func (t TestStruct) GetString() string {
|
||||
@@ -37,6 +38,10 @@ func (t TestStruct) GetData() any {
|
||||
return t.Data
|
||||
}
|
||||
|
||||
func (t TestStruct) GetIntSlice() []int {
|
||||
return t.IntSlice
|
||||
}
|
||||
|
||||
func (t TestStruct) Void() {}
|
||||
|
||||
type TestProcessor struct {
|
||||
|
||||
Reference in New Issue
Block a user