tohex

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL