safewrap

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SafeWrap

type SafeWrap struct {
	Err error
}

SafeWrap has default options for encoding/decoding objects and lifts errors so you can wrap an arbitrary number of objects if one errors, then none of the others will do anything the error is saved to the struct.

func (*SafeWrap) Decode

func (sf *SafeWrap) Decode(data []byte) *cbornode.Node

func (*SafeWrap) WrapObject

func (sf *SafeWrap) WrapObject(obj interface{}) *cbornode.Node

Jump to

Keyboard shortcuts

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