From 6f65eecb7e310a0bfd2274579eec4f26d1635fec Mon Sep 17 00:00:00 2001 From: blinkthethings Date: Fri, 25 Dec 2020 09:29:02 -0500 Subject: [PATCH] Add comments --- modhex.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modhex.go b/modhex.go index 0cda637..0ae17bd 100644 --- a/modhex.go +++ b/modhex.go @@ -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)