utils

package
v0.0.0-...-576cf03 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2016 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(input interface{}, output interface{})

func DecodeStream

func DecodeStream(s StreamReader, f interface{})

func Decoder

func Decoder(b []byte, f interface{})

func Encoder

func Encoder(data interface{}) []byte

func Validate

func Validate(obj interface{}) *[]error

func ValidateStruct

func ValidateStruct(faults *[]error, obj interface{})

Types

type Q

type Q map[string]interface{}

type StreamReader

type StreamReader interface {
	Close() error
	Read([]byte) (int, error)
}

Jump to

Keyboard shortcuts

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