func Valid(data []byte) error {
	return defaultDecMode.Valid(data)
}
Valid checks whether the CBOR data is complete and well-formed.
package cbor
import (
	"encoding"
	"encoding/binary"
	"errors"
	"fmt"
	"io"
	"math"
	"math/big"
	"reflect"
	"strconv"
	"strings"
	"time"
	"unicode/utf8"
	"github.com/x448/float16"
)
func Unmarshal(data []byte, v interface{}) error {
	return defaultDecMode.Unmarshal(data, v)
}