Offer your users the possibility to connect by websocket ! It allows them to use your service from javascript code :
* Javascript is very popular and lets you build prototypes very quickly
* It’s more easy to build a GUI with HTML than most desktop languages
* You can offer a true demonstration of your service directly on your website
and… let me convince you that it’s very low-cost.… Read more
Category: JSON
About JSON
Unmarshal JSON to non-empty interface
When you’re filling a struct by calling :
json.Unmarshal(buff, &yourStruct)It is not uncommon that your struct contains a non-empty interface.
type IElement interface { GetBody() string } type Message struct { Name string Provider string Elements []IElement }And of course, json.Unmarshal can’t automatically find matching structs to fill that []IElement.… Read more