HexDump convert path content to hexadecimal
()
| 223 | |
| 224 | // HexDump convert path content to hexadecimal |
| 225 | func (s *Scanner) HexDump() (string, error) { |
| 226 | bytes, err := ioutil.ReadFile(s.Path) |
| 227 | if err != nil { |
| 228 | return NilString, err |
| 229 | } |
| 230 | return hex.Dump(bytes), nil |
| 231 | } |
| 232 | |
| 233 | // Exec execution statistics time |
| 234 | func Exec(do func()) { |
no outgoing calls