Browse Source

Add comments

master
Blink The Things 3 years ago
parent
commit
6f65eecb7e
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      modhex.go

+ 2
- 0
modhex.go View File

@ -7,11 +7,13 @@ import (
"strings"
)
// modhex character table for encoding
const modhexTable = "cbdefghijklnrtuv"
var modhexMap map[byte]byte
func init() {
// create a map from byte to modhex for decoding
modhexMap = make(map[byte]byte)
for i, v := range []byte(modhexTable) {
modhexMap[v] = byte(i)


Loading…
Cancel
Save