post

package
v0.0.0-...-c704d6e Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2015 License: Unlicense Imports: 4 Imported by: 0

Documentation

Overview

implements http://en.wikipedia.org/wiki/RM4SCC

msg := "BX11LT1A"
f, _ := os.Create("rm4scc.png")
b := post.NewRM4SCC(msg)
img := b.GetImage()
png.Encode(f, img)
f.Close()

implements http://en.wikipedia.org/wiki/POSTNET and http://en.wikipedia.org/wiki/Postal_Alpha_Numeric_Encoding_Technique

msg := "555551237"
f, _ := os.Create("postnet.png")
b := post.NewPostnet(msg) // or post.NewPlanet
img := b.GetImage()
png.Encode(f, img)
f.Close()

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RM4SCC

type RM4SCC struct {
	BarHeight, BarWidth int
	DebugPrint          bool
	// contains filtered or unexported fields
}

func NewRM4SCC

func NewRM4SCC(msg string) *RM4SCC

func (*RM4SCC) GetImage

func (this *RM4SCC) GetImage() image.Image

type USPS

type USPS struct {
	BarHeight, BarWidth int
	DebugPrint          bool
	// contains filtered or unexported fields
}

func NewPlanet

func NewPlanet(msg string) *USPS

func NewPostnet

func NewPostnet(msg string) *USPS

func (*USPS) GetImage

func (this *USPS) GetImage() image.Image

Jump to

Keyboard shortcuts

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