advise to support mashal
as the title, i advise this lib can add a feature for mashal and unmashal,thanks a lot !
Hello @Nyx2022, I would like to help but I'm not sure which type of marshalling you are referring to. Do you mean any of the interfaces found in the encoding or encoding/jsonpackages? And which types should implement such interfaces? Thank you!
sorry, i can not understand your reply fully, can you describe more
Are you requesting that the queue’s contents be displayed in the output when the queue object is marshaled to JSON? Something like this?
q := queue.NewBlocking([]int{1, 2, 3})
b, _ := json.Marshal(q)
fmt.Println(string(b))
// Output: { "elems": [1, 2, 3]}
no, what i want to is only [1,2,3] as the output, not include in "elems" attr