types

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type uint8

Type represents the MessagePack value type.

const (
	Invalid Type = iota
	Nil
	Bool
	Int
	Uint
	Float
	Str
	Bin
	Ext
	Array
	Map
)

Value constants for MessagePack.

func Get

func Get(c byte) (typ Type, length int, isValueLength bool)

Get returns the type of the MessagePack value, its length, and a boolean indicating the nature of the length. The length represents either the actual value's length (if the boolean is true), or the number of bytes used to encode the value's length (if the boolean is false).

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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