/cboring

Go library for selected subset of CBOR's features

Primary LanguageGoGNU General Public License v3.0GPL-3.0

cboring CI GoDoc

A simple CBOR Go(lang) library for a selected subset of features, developed to be used in dtn7-go, an implementation of the Bundle Protocol Version 7. The name is based on the fact that cboring is both boring to use and bored about the amount of data to handle.

Features

  • Supports a selected subset of CBOR's features:
    • Unsigned Integer
    • Floating-point values
    • Byte and Text String
    • Arrays, both of definite and indefinite length
    • Maps of definite length
    • Booleans
  • Small and clear codebase:
    • Only works on streams, Go's io.Reader or io.Writer
    • Does not use reflection or make any strange assumptions
  • Surprisingly fast