Skip to content

Add example of structs in state #29

@nilsmagnus

Description

@nilsmagnus

Hi Bjørn, thanks for an awesome library!

Could you add an example of how to insert/retrieve custom structs in state ?

E.g. a slice of custom struct( this is not working ):

people := c.State().Interface("people").([]Person)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions