in a go program?
Is there any Third-Party library to do that?
Using a third-party lib may force you to encode/decode your struct and this has an overhead. If your queue is used in 1 app, you may use a slice of your struct. Then you may use a mutex to handle the mutual exclusion of multiple goroutines accessing the queue. You can pass a reference of the queue to your funcs.
Обсуждают сегодня