Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 457 Bytes

File metadata and controls

13 lines (9 loc) · 457 Bytes

fsio

Package with generic file IO functions. The package was named fsio to reduce conflict with other package names like file, filepath, and other generic names.

Functions

Sha256(filePath string) ([]byte, error) - Sha256 returns a SHA256 hash for a file as a byte array. It will throw errors when it cannot open the file or failing to write the file contents to the hash.

LoadByJson() Initialize a Go struct from a JSON file.