godep: vendor go-bindata

This commit is contained in:
Mike Danese
2016-10-22 09:12:57 -07:00
parent 377967935b
commit 1cd2968917
21 changed files with 2117 additions and 170 deletions

36
vendor/github.com/jteeuwen/go-bindata/stringwriter.go generated vendored Normal file
View File

@@ -0,0 +1,36 @@
// This work is subject to the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
// license. Its contents can be found at:
// http://creativecommons.org/publicdomain/zero/1.0/
package bindata
import (
"io"
)
const lowerHex = "0123456789abcdef"
type StringWriter struct {
io.Writer
c int
}
func (w *StringWriter) Write(p []byte) (n int, err error) {
if len(p) == 0 {
return
}
buf := []byte(`\x00`)
var b byte
for n, b = range p {
buf[2] = lowerHex[b/16]
buf[3] = lowerHex[b%16]
w.Writer.Write(buf)
w.c++
}
n++
return
}