Discover Packages
github.com/softlandia/cpd
sample
tohex
command
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Feb 19, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
# sample to package cpd #
(c) softlandia@gmail.com
tohex -- simple program using cpd to encode the input string to the specified encoding and return the string from the hexadecimal code of the received runes
sample:
>tohex Hi utf-16le
>"\x48\x0\x69\x0"
>tohex аб-ёя utf16le
>"\x30\x4\x31\x4\x2D\x0\x51\x4\x4F\x4"
>tohex.exe аб-ёя win1251 >r.txt
>"\xE0\xE1\x2D\xB8\xFF"
the result string is convenient to use in the Golang code
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.