Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example of structs in state #29

Open
nilsmagnus opened this issue Oct 20, 2016 · 1 comment
Open

Add example of structs in state #29

nilsmagnus opened this issue Oct 20, 2016 · 1 comment

Comments

@nilsmagnus
Copy link

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)

@bep
Copy link
Owner

bep commented Oct 20, 2016

Yes I will -- once I figure out how to do it effectively.

This and related issues was what made take a little break from this -- hoping the GopherJS scene would somehow mature in this area, i.e. data transfers to and from server and to and from the Go and JS layer without costly serializing (which may be obvious in the Ajax sample).

I will pick up the hat and so some more thinking here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants