utils

package
v0.0.0-...-05ac8c3 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var A = [][]int{[]int{0, 1, 1, 0}, []int{1, 0, 0, 1}, []int{1, 0, 0, 1}, []int{1, 1, 1, 1}, []int{1, 0, 0, 1}, []int{1, 0, 0, 1}}
View Source
var B = [][]int{[]int{1, 1, 1, 0}, []int{1, 0, 0, 1}, []int{1, 1, 1, 0}, []int{1, 0, 0, 1}, []int{1, 0, 0, 1}, []int{1, 1, 1, 0}}
View Source
var C = [][]int{[]int{0, 1, 1, 0}, []int{1, 0, 0, 1}, []int{1, 0, 0, 0}, []int{1, 0, 0, 0}, []int{1, 0, 0, 1}, []int{0, 1, 1, 0}}
View Source
var D = [][]int{[]int{1, 1, 1, 0}, []int{1, 0, 0, 1}, []int{1, 0, 0, 1}, []int{1, 0, 0, 1}, []int{1, 0, 0, 1}, []int{1, 1, 1, 0}}
View Source
var E = [][]int{[]int{1, 1, 1, 1}, []int{1, 0, 0, 0}, []int{1, 1, 1, 0}, []int{1, 0, 0, 0}, []int{1, 0, 0, 0}, []int{1, 1, 1, 1}}
View Source
var F = [][]int{[]int{1, 1, 1, 1}, []int{1, 0, 0, 0}, []int{1, 1, 1, 0}, []int{1, 0, 0, 0}, []int{1, 0, 0, 0}, []int{1, 0, 0, 0}}
View Source
var G = [][]int{[]int{1, 1, 1, 1}, []int{1, 0, 0, 1}, []int{1, 0, 0, 0}, []int{1, 0, 1, 1}, []int{1, 1, 1, 1}}
View Source
var H = [][]int{[]int{1, 0, 0, 1}, []int{1, 0, 0, 1}, []int{1, 1, 1, 1}, []int{1, 0, 0, 1}, []int{1, 0, 0, 1}, []int{1, 0, 0, 1}}
View Source
var I = [][]int{[]int{1}, []int{1}, []int{1}, []int{1}, []int{1}, []int{1}}
View Source
var J = [][]int{[]int{0, 0, 0, 1}, []int{0, 0, 0, 1}, []int{0, 0, 0, 1}, []int{0, 0, 0, 1}, []int{1, 0, 0, 1}, []int{0, 1, 1, 0}}
View Source
var K = [][]int{[]int{1, 0, 0, 1}, []int{1, 0, 1, 1}, []int{1, 1, 0, 0}, []int{1, 0, 1, 1}, []int{1, 0, 0, 1}, []int{1, 0, 0, 1}}
View Source
var L = [][]int{[]int{1, 0, 0, 0}, []int{1, 0, 0, 0}, []int{1, 0, 0, 0}, []int{1, 0, 0, 0}, []int{1, 0, 0, 0}, []int{1, 1, 1, 1}}
View Source
var M = [][]int{[]int{1, 0, 0, 0, 1}, []int{1, 1, 0, 1, 1}, []int{1, 0, 1, 0, 1}, []int{1, 0, 1, 0, 1}, []int{1, 0, 0, 0, 1}, []int{1, 0, 0, 0, 1}}
View Source
var N = [][]int{[]int{1, 1, 0, 0, 1}, []int{1, 1, 0, 0, 1}, []int{1, 0, 1, 0, 1}, []int{1, 0, 1, 0, 1}, []int{1, 0, 0, 1, 1}, []int{1, 0, 0, 1, 1}}
View Source
var O = [][]int{[]int{1, 1, 1, 1}, []int{1, 0, 0, 1}, []int{1, 0, 0, 1}, []int{1, 0, 0, 1}, []int{1, 0, 0, 1}, []int{1, 1, 1, 1}}
View Source
var P = [][]int{[]int{1, 1, 1, 1}, []int{1, 0, 0, 1}, []int{1, 1, 1, 1}, []int{1, 0, 0, 0}, []int{1, 0, 0, 0}, []int{1, 0, 0, 0}}
View Source
var Q = [][]int{[]int{0, 1, 1, 1, 0}, []int{1, 0, 0, 0, 1}, []int{1, 0, 0, 0, 1}, []int{1, 0, 1, 0, 1}, []int{1, 0, 0, 1, 1}, []int{0, 1, 1, 1, 0}}
View Source
var R = [][]int{[]int{1, 1, 1, 0}, []int{1, 0, 0, 1}, []int{1, 1, 1, 0}, []int{1, 1, 0, 0}, []int{1, 0, 1, 0}, []int{1, 0, 0, 1}}
View Source
var S = [][]int{[]int{1, 1, 1, 1}, []int{1, 0, 0, 0}, []int{1, 1, 1, 1}, []int{0, 0, 0, 1}, []int{0, 0, 0, 1}, []int{1, 1, 1, 1}}
View Source
var SPACE = [][]int{[]int{0}, []int{0}, []int{0}, []int{0}, []int{0}, []int{0}}
View Source
var T = [][]int{[]int{1, 1, 1, 1, 1}, []int{0, 0, 1, 0, 0}, []int{0, 0, 1, 0, 0}, []int{0, 0, 1, 0, 0}, []int{0, 0, 1, 0, 0}, []int{0, 0, 1, 0, 0}}
View Source
var U = [][]int{[]int{1, 0, 0, 1}, []int{1, 0, 0, 1}, []int{1, 0, 0, 1}, []int{1, 0, 0, 1}, []int{1, 0, 0, 1}, []int{0, 1, 1, 0}}
View Source
var V = [][]int{[]int{1, 0, 0, 0, 1}, []int{1, 0, 0, 0, 1}, []int{1, 0, 0, 0, 1}, []int{0, 1, 0, 1, 0}, []int{0, 1, 0, 1, 0}, []int{0, 0, 1, 0, 0}}
View Source
var W = [][]int{[]int{1, 0, 0, 0, 1}, []int{1, 0, 0, 0, 1}, []int{1, 0, 1, 0, 1}, []int{1, 0, 1, 0, 1}, []int{1, 1, 1, 1, 1}, []int{0, 1, 0, 1, 0}}
View Source
var X = [][]int{[]int{1, 0, 0, 0, 1}, []int{0, 1, 0, 1, 0}, []int{0, 0, 1, 0, 0}, []int{0, 0, 1, 0, 0}, []int{0, 1, 0, 1, 0}, []int{1, 0, 0, 0, 1}}
View Source
var Y = [][]int{[]int{1, 0, 0, 0, 1}, []int{0, 1, 0, 1, 0}, []int{0, 0, 1, 0, 0}, []int{0, 0, 1, 0, 0}, []int{0, 0, 1, 0, 0}, []int{0, 0, 1, 0, 0}}
View Source
var Z = [][]int{[]int{1, 1, 1, 1}, []int{0, 0, 0, 1}, []int{0, 0, 1, 0}, []int{0, 1, 0, 0}, []int{1, 0, 0, 0}, []int{1, 1, 1, 1}}

Functions

func TranslateLetter

func TranslateLetter(letter string) ([][]int, error)

TranslateLetter returns the bitmap like [][]int of the given letter.

Types

type FileGenerator

type FileGenerator interface {
	CreateFile() (string, error)
}

FileGenerator is an interface that provides a method to generate files.

type RandomFileGenerator

type RandomFileGenerator struct {
	Location string
}

RandomFileGenerator holds the information of the Location of a file.

func (RandomFileGenerator) CreateFile

func (f RandomFileGenerator) CreateFile() (filename string, err error)

CreateFile creates a file with the current nano seconds as the filename in the file generators location and returns the time stamp (i.e. filename).

Jump to

Keyboard shortcuts

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