4 ms·
I am afraid there isn't. In fact, it's called a "slice trick" and listed in Go wiki: https://github.com/golang/go/wiki/SliceTricks https://github.com/golang/go/
by tucnak 11y ago
I am afraid there isn't. In fact, it's called a "slice trick" and listed in Go wiki: https://github.com/golang/go/wiki/SliceTricks https://github.com/golang/go/wiki/SliceTricks