Documentation
¶
Overview ¶
Package pick implements a simple library for reordering and hashing columnar data.
Use poseur.com/pick to transform an array of strings into another array of strings. The Do() function takes a row of data (a string array and an output column specification (an array of Column structs) and returns a string array of the same length as the column specification, with each element corresponding to the column specification at that index. Each column specification consists of an input field offset (zero-based) and an output specifier (a string corresponding to one of the supported output functions).
Index ¶
Constants ¶
View Source
const ( // Plain does not modify the input. Plain = Hash("plain") // MD5 MD5-encodes the input and output lowercase hex signature. MD5 = Hash("md5") // SHA1 SHA1-encodes the input and output lowercase hex signature. SHA1 = Hash("sha1") // SHA256 SHA256-encodes the input and output lowercase hex signature. SHA256 = Hash("sha256") // UCMD5 MD5-encodes the input and output lowercase hex signature. UCMD5 = Hash("MD5") // MD5 the input (uppercase). // UCSHA1 SHA1-encodes the input and output lowercase hex signature. UCSHA1 = Hash("SHA1") // SHA1 the input (uppercase). // UCSHA256 SHA256-encodes the input and output lowercase hex signature. UCSHA256 = Hash("SHA256") // SHA256 the inpit (uppercase). )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Source Files
¶
- pick.go
Click to show internal directories.
Click to hide internal directories.