asn1

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package asn1 provides a mockable wrapper for encoding/asn1.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) Marshal

func (*Impl) Marshal(val any) ([]byte, error)

func (*Impl) MarshalWithParams

func (*Impl) MarshalWithParams(val any, params string) ([]byte, error)

func (*Impl) Unmarshal

func (*Impl) Unmarshal(b []byte, val any) (rest []byte, err error)

func (*Impl) UnmarshalWithParams

func (*Impl) UnmarshalWithParams(b []byte, val any, params string) (rest []byte, err error)

type Interface

type Interface interface {
	Marshal(val any) ([]byte, error)
	MarshalWithParams(val any, params string) ([]byte, error)
	Unmarshal(b []byte, val any) (rest []byte, err error)
	UnmarshalWithParams(b []byte, val any, params string) (rest []byte, err error)
}

Jump to

Keyboard shortcuts

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