convert

package
v0.0.0-...-b10e7cb Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: BSD-3-Clause Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(from interface{}, to interface{}) error

Function that starts a conversion between to different models

Types

type Converter

type Converter interface {
	// Method use to convert from an interface{} to a struct
	Convert(interface{}, string, string) (Converter, error)
}

type Deconverter

type Deconverter interface {
	// Method use to deconvert as struct to an interface{}
	Deconvert() interface{}
}

Jump to

Keyboard shortcuts

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