len of Segments slice should be winsize?

... and cap of Segments  should by capacity?
Otherwise it how does one know how large Segments is ahead of time without having to write a procedure to look for non-nil elements.

Or else winsize could be an exported entity