func NewKvmsg(sequence int64) (kvmsg *Kvmsg) {
	kvmsg = &Kvmsg{
		present: make([]bool, kvmsg_FRAMES),
		frame:   make([]string, kvmsg_FRAMES),
		props:   make([]string, 0),
	}
	kvmsg.SetSequence(sequence)
	return
}
Constructor, takes a sequence number for the new Kvmsg instance.
package kvmsg
import (
	zmq "github.com/pebbe/zmq4"
	"github.com/google/uuid"
	"errors"
	"fmt"
	"os"
	"strings"
)
const (
	frame_KEY    = 0
	frame_SEQ    = 1
	frame_UUID   = 2
	frame_PROPS  = 3
	frame_BODY   = 4
	kvmsg_FRAMES = 5
)
type Kvmsg struct {
	present []bool
	frame []string
	props []string
}
func (kvmsg *Kvmsg) encode_props() {
	kvmsg.frame[frame_PROPS] = strings.Join(kvmsg.props, "\n") + "\n"
	kvmsg.present[frame_PROPS] = true
}
func (kvmsg *Kvmsg) decode_props() {
	kvmsg.props = strings.Split(kvmsg.frame[frame_PROPS], "\n")
	if ln := len(kvmsg.props); ln > 0 && kvmsg.props[ln-1] == "" {
		kvmsg.props = kvmsg.props[:ln-1]
	}
}