Documentation ¶ Index ¶ func NewFileHashCmd(_ func()) *cobra.Command type Encoding type FileHash func NewFileHash() *FileHash func (fh *FileHash) Calculate(hashType string, filePath string) ([]byte, error) func (fh *FileHash) Format(rawHash []byte, e Encoding) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewFileHashCmd ¶ func NewFileHashCmd(_ func()) *cobra.Command Types ¶ type Encoding ¶ type Encoding string const ( HexLower Encoding = "hex" HexUpper Encoding = "hex-up" Base64 Encoding = "base64" ) type FileHash ¶ type FileHash struct{} func NewFileHash ¶ func NewFileHash() *FileHash func (*FileHash) Calculate ¶ func (fh *FileHash) Calculate(hashType string, filePath string) ([]byte, error) func (*FileHash) Format ¶ func (fh *FileHash) Format(rawHash []byte, e Encoding) (string, error) Source Files ¶ View all Source files cmd.gohash.go Click to show internal directories. Click to hide internal directories.