code: func EncodeWSOption(ws int, b []byte) int {
  	if len(b) < 3 {
  		return 0
  	}
  	b[0], b[1], b[2] = TCPOptionWS, 3, uint8(ws)
  	return int(b[1])
  }
docs: // EncodeWSOption encodes the WS TCP option with the WS value in the
  // provided buffer. If the provided buffer is not large enough then it just
  // returns without encoding anything. It returns the number of bytes written to
  // the provided buffer.