entity

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

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