kdbgo
kdbgo copied to clipboard
Cant seem to Unmarshal char[]
Im trying to use UnmarshalDict any i got it to work with all fields but a list of char
My table structure
c | t f a
-----------| -----
id | s
dispname | C
order | i
update_time| z
My Struct for this table
type Linkgroup struct {
Id string `json:"id"`
Dispname string `json:"dispname"`
Order int32 `json:"order"`
Update_time time.Time `json:"update_time"`
}
i do a db.Call("0!select from linkgroups") Then i do the following
tbl := t.Data.(kdb.Table)
dict := tbl.Index(2)
var data2 models.Linkgroup
err := kdb.UnmarshalDict(dict, data2)
fmt.Println(data2)
All the fields work except Dispname.
Thank you for any help, hopefully you still look at this repo