input

package
v0.0.0-...-67ab23a Latest Latest
Warning

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

Go to latest
Published: May 26, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterInstance

func RegisterInstance(converter Converter)

Types

type Converter

type Converter interface {
	Name() string
	Convert(input string) (data []byte, err error)
}

func GetInstance

func GetInstance(name string) Converter

type HexadecimalConverter

type HexadecimalConverter struct {
}

func (*HexadecimalConverter) Convert

func (c *HexadecimalConverter) Convert(input string) (data []byte, err error)

func (*HexadecimalConverter) Name

func (c *HexadecimalConverter) Name() string

type StringConverter

type StringConverter struct {
}

func (*StringConverter) Convert

func (c *StringConverter) Convert(input string) (data []byte, err error)

func (*StringConverter) Name

func (c *StringConverter) Name() string

Jump to

Keyboard shortcuts

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