15 lines
210 B
Go
15 lines
210 B
Go
package helpers
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func BuildByteString(data []byte) string {
|
|
out := fmt.Sprintf("%02x", data[0])
|
|
|
|
for _, byte := range data[1:] {
|
|
out += fmt.Sprintf(":%02x", byte)
|
|
}
|
|
|
|
return out
|
|
}
|