hex

command module
v0.0.0-...-e07e03d Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 5 Imported by: 0

README

Hex Tool

A command line tool that converts number between different number systems.

Installation

Make sure your go version is greater than 1.13. And simply run:

$ GO111MODULE=on go get github.com/gg-tools/hex

Make sure your PATH includes the $GOPATH/bin directory so commands can be easily used:

export PATH=$PATH:$GOPATH/bin

Usage

# convert to binary system
hex -b 1988

# convert to octal system
hex -o 1988

# convert to hexadecimal system
hex -H 1988

# convert number from binary system to hexadecimal system
hex 0b110

# convert number from octal system to hexadecimal system
hex 06

# convert number from hexadecimal system to hexadecimal system
hex -hex 0x1e
hex -H 0x1e

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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