42 lines
1.0 KiB
Markdown
42 lines
1.0 KiB
Markdown
# hex-convert
|
|
|
|
```shell
|
|
支持 76 位以内的任意进制相互转换
|
|
|
|
Usage:
|
|
hc [command]
|
|
|
|
Available Commands:
|
|
b 转换为二进制
|
|
d 转换为十进制
|
|
h 转换为十六进制
|
|
help Help about any command
|
|
o 转换为八进制
|
|
server 启动 HTTP Server
|
|
version Print version
|
|
|
|
Flags:
|
|
-d, --data string 要转换数值
|
|
-h, --help help for hc
|
|
-s, --scale int 要转换的进制
|
|
|
|
Use "hc [command] --help" for more information about a command.
|
|
```
|
|
|
|
```shell
|
|
➜ hex-convert version
|
|
|
|
__ __
|
|
/ /_ ___ _ __ _________ ____ _ _____ _____/ /_
|
|
/ __ \/ _ \| |/_/_____/ ___/ __ \/ __ \ | / / _ \/ ___/ __/
|
|
/ / / / __/> </_____/ /__/ /_/ / / / / |/ / __/ / / /_
|
|
/_/ /_/\___/_/|_| \___/\____/_/ /_/|___/\___/_/ \__/
|
|
|
|
|
|
|
|
Name: hc
|
|
Version: v1.0.1
|
|
BuildTime: 2019-10-02 17:26:13
|
|
GitCommit: ede4bd17e9749a011d4bcec953db0ae6b6c5695b
|
|
GoVersion: go version go1.13.1 darwin/amd64
|
|
``` |