package msgutil

import "github.com/rootless-containers/rootlesskit/pkg/msgutil"

Package msgutil provides utility for JSON message with uint32le header

Index

Functions

func Marshal

func Marshal(x interface{}) ([]byte, error)

func MarshalToWriter

func MarshalToWriter(w io.Writer, x interface{}) (int, error)

func Unmarshal

func Unmarshal(b []byte, x interface{}) error

func UnmarshalFromReader

func UnmarshalFromReader(r io.Reader, x interface{}) (int, error)

Source Files

msgutil.go

Version
v1.1.1 (latest)
Published
May 30, 2023
Platform
linux/amd64
Imports
5 packages
Last checked
3 weeks ago

Tools for package owners.