feat(version): v1 release. see history for details

This commit is contained in:
Tomas Aparicio 2016-04-21 16:44:50 +01:00
parent a0fc602e69
commit c57a8c1320
14 changed files with 181 additions and 108 deletions

View file

@ -2,10 +2,14 @@ package bimg
import "io/ioutil"
// Read reads all the content of the given file path
// and returns it as byte buffer.
func Read(path string) ([]byte, error) {
return ioutil.ReadFile(path)
}
// Write writes the given byte buffer into disk
// to the given file path.
func Write(path string, buf []byte) error {
return ioutil.WriteFile(path, buf, 0644)
}