summaryrefslogtreecommitdiff
path: root/internal/files/bin
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2016-07-30 11:04:43 -0400
committerKurt <kurt.w.jung@gmail.com>2016-07-30 11:04:43 -0400
commita7290bf6598b103a0fcdb5ce25182e83c00e881b (patch)
treece1128a9020335884c2700eea5d502e69f47bf77 /internal/files/bin
parentb4326772157dd77fe2d769a03611a1dca14a10e2 (diff)
Isolate embedded font data
Diffstat (limited to 'internal/files/bin')
-rw-r--r--internal/files/bin/bin.go28
1 files changed, 28 insertions, 0 deletions
diff --git a/internal/files/bin/bin.go b/internal/files/bin/bin.go
new file mode 100644
index 0000000..5b56313
--- /dev/null
+++ b/internal/files/bin/bin.go
@@ -0,0 +1,28 @@
+package main
+
+import (
+ "fmt"
+ "io/ioutil"
+ "os"
+)
+
+func main() {
+ var buf []byte
+ var pos int
+ var b byte
+ var err error
+ buf, err = ioutil.ReadAll(os.Stdin)
+ if err == nil {
+ for _, b = range buf {
+ fmt.Printf("0x%02X, ", b)
+ pos++
+ if pos >= 16 {
+ fmt.Println("")
+ pos = 0
+ }
+ }
+ }
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "%s\n", err)
+ }
+}