encoder

package
v1.0.1-0...-7326184 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

type Encoder interface {
	MimeType() string
	Encode(w io.Writer, data interface{}) error
}

Encoder provider.

func JSON

func JSON() Encoder

JSON construct.

type MockEncoder

type MockEncoder struct {
	mock.Mock
}

MockEncoder is an autogenerated mock type for the Encoder type

func (*MockEncoder) Encode

func (_m *MockEncoder) Encode(w io.Writer, data interface{}) error

Encode provides a mock function with given fields: w, data

func (*MockEncoder) MimeType

func (_m *MockEncoder) MimeType() string

MimeType provides a mock function with given fields:

Jump to

Keyboard shortcuts

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