func (n NodeAddr) NodeAddrToString() string {
	return n.Host + ":" + strconv.Itoa(n.Port)
}
Convert to string in format host:port
package net
import (
	"bytes"
	"encoding/gob"
	"errors"
	"fmt"
	"strconv"
	"strings"
)
const Protocol = "tcp"
const NodeVersion = 1
const CommandLength = 12
const AuthStringLength = 20
type NodeAddr struct {
	Host string
	Port int
}