diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-14 02:37:23 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-14 02:37:35 -0500 |
commit | 1ac9db65fda0693d13336e6471a858914348f2fc (patch) | |
tree | bf53443c9958689fe1a049934faa4393418c2aa1 /sd_id128/util.go | |
parent | 963644c19058829f74bd7d19a484c0786d6777cd (diff) |
sd_id128: use ioutil.ReadFile instead of rolling my own readfile.
Diffstat (limited to 'sd_id128/util.go')
-rw-r--r-- | sd_id128/util.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/sd_id128/util.go b/sd_id128/util.go index ae50008..77c6079 100644 --- a/sd_id128/util.go +++ b/sd_id128/util.go @@ -14,11 +14,6 @@ package sd_id128 -import ( - "io/ioutil" - "os" -) - func hexchar(x byte) byte { return "0123456789abcdef"[x&15] } @@ -33,13 +28,3 @@ func unhexchar(c byte) (byte, error) { } return 0, ErrInvalid } - -func readfile(filename string) (string, error) { - file, err := os.Open(filename) - if err != nil { - return "", err - } - defer file.Close() - b, err := ioutil.ReadAll(file) - return string(b), err -} |