Documentation ¶
Overview ¶
Package identicon creates simple visual hashes of data as PNGs.
For more information, see https://en.wikipedia.org/wiki/Identicon and https://github.com/blog/1586-identicons
Index ¶
- Constants
- func GetCSVContent(csvFile string) [][]string
- type Record
- func (x *Record) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *Record) CodecEncodeSelf(e *codec1978.Encoder)
- func (r Record) CreateContent(f string, w io.Writer)
- func (r Record) CreateFile(basePath string) error
- func (r Record) FileExt() string
- func (r Record) ToJSON(w io.Writer) error
- func (r Record) Write(w io.Writer) error
- type Renderer
Constants ¶
View Source
const CSVNewLine = "\n"
View Source
const CSVSep = "|"
View Source
const DirPerm os.FileMode = 0755
Variables ¶
This section is empty.
Functions ¶
func GetCSVContent ¶ added in v0.4.0
Types ¶
type Record ¶
type Record struct { Path string // idx 0 ModTime time.Time // idx 1 Width int // idx 2 Height int // idx 3 // contains filtered or unexported fields }
func NewRecordFields ¶
func (*Record) CodecDecodeSelf ¶
func (*Record) CodecEncodeSelf ¶
func (Record) CreateFile ¶
type Renderer ¶ added in v0.3.0
Renderer allows rendering of data as a PNG identicon
func New5x5 ¶ added in v0.3.0
New5x5 creates a new 5-by-5 identicon renderer using 'key' as the hash salt
func New7x7 ¶ added in v0.3.0
New7x7 creates a new 7-by-7 identicon renderer using 'key' as the hash salt
func New7x7Size ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.