diff options
author | Jelmer Snoeck <jelmer.snoeck@gmail.com> | 2015-11-08 16:12:59 +0000 |
---|---|---|
committer | Jelmer Snoeck <jelmer.snoeck@gmail.com> | 2015-11-08 16:12:59 +0000 |
commit | e2ec56d7c568860cdd85569054cb1bef1e1c13db (patch) | |
tree | bda70cf60fe37e5af19cb2f6f12c3c1207adb149 /protect.go | |
parent | b01a0c8ceb33a6dadf297e019e6f836e114a2a6a (diff) |
Compare: make `CompareBytes` exported.
All the "magic" of reference comparison happens within the
`CompareBytes` function.
Reading a file (with `ioutil.ReadFile`) gives you an array of bytes and
gofpdf supports writing to a byte buffer, where we can easily get the
bytes from.
Exporting `CompareBytes` would make it possible to use this core
functionality instead of having to convert the data into `io.Reader`.
Diffstat (limited to 'protect.go')
0 files changed, 0 insertions, 0 deletions