bertlv

package
v0.0.0-...-91fa366 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoBytesLeft = fmt.Errorf("no bytes left")

Functions

func MakeJSONString

func MakeJSONString(data interface{}) string

MakeJSONString dumps a struct to json as a helper.

Types

type TLVData

type TLVData map[string][]byte

func Parse

func Parse(data []byte, values *TLVData) (*TLVData, error)

Parse takes a byte array of data of BER-TLV encoded data to decode into values. If values is nil, it will be created. A created map or an error will be returned upon completion.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL