shove

Results 49 comments of shove

> If it possible you were relying on a bug that is now handled properly. 👍 Very accurate, there is a great probability that this is the reason. Projects in...

https://github.com/vlang/v/issues/15592#issuecomment-1230285571 You can try json2, or you can decode to string first, and then convert to time.Time

> ```v > res1 := '{ "version": 1, "name": "test", "date": 1661942525 }' > ``` Upstream data providers usually do not use 'int' to represent time or date, such as...

It looks like sumtype

Thank you. I just need ringbuffer. Can you provide a method to push more elements at a time? ```push(elements []T)``` This is very useful for reading and writing socket buffers....

Sorry, there was a slight change a few days ago, and a small rule was added: the reference type field of the structure must be initialized. Therefore, we initialize uniformly...

If the initialization of the structure in the module is a little complicated or involves memory optimization, the authors will generally provide ```new_xxx()``` to guide users how to use it....

You're welcome. I have no problem: ```v import net import net.websocket fn main() { addr := net.resolve_ipaddrs('127.0.0.1', .ip, net.SocketType.tcp)?[0] mut server := websocket.new_server(addr.family(), 8080, '', websocket.ServerOpt{}) server.free() } ``` Can...

> It may be even better to simply implement `push(elements ...T)`. Then you can supply 1 or more elements. If you want to only push 1, it would be `push(one)`....