entity

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(t string, d io.Reader) (*readerEntity, error)

func NewBytes

func NewBytes(t string, d []byte) (*readerEntity, error)

func NewJSON

func NewJSON(e interface{}) (*readerEntity, error)

func NewString

func NewString(t string, d string) (*readerEntity, error)

Types

type Entity

type Entity interface {
	Type() string
	Data() io.Reader
}

Jump to

Keyboard shortcuts

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