formatter

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2018 License: MIT Imports: 3 Imported by: 3

Documentation

Overview

Package formatter provides methods to convert JSON/XML strings to provided types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter interface {
	Unmarshal(data []byte, object interface{}) error
}

Formatter defines methods needed for all formatter types

func New

func New(format string) (Formatter, error)

New returns formatter instance based on specified format type (JSON or XML)

Jump to

Keyboard shortcuts

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