encode

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(obj runtime.Object, format string) ([]byte, error)

Encode converts the provided object to the specified format and returns a byte slice of the encoded data.

func EncodeTo

func EncodeTo(obj runtime.Object, format string, w io.Writer) error

EncodeTo converts the provided object to the specified format and writes the encoded data to the provided io.Writer.

func EncoderFor

func EncoderFor(format string) (runtime.Encoder, error)

EncoderFor gets the appropriate encoder for the specified format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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