https://github.com/borud/serialnum
https://github.com/borud/serialnum
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/borud/serialnum
- Owner: borud
- Created: 2021-04-21T14:40:05.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-21T14:46:44.000Z (about 5 years ago)
- Last Synced: 2024-06-20T15:47:43.213Z (almost 2 years ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# serialnum
Utility to translate serial number between different formats.
## Install
go install github.com/borud/serialnum/cmd/serialnum@latest
## Usage examples
From integer serial number
$ serialnum -i 158916359710
uint64 = 158916359710
string = 000.037.2020.108.00039
bytes = {25 27 7e4 6c}
From xxx.xxx.xxxx.xxx.xxxxx format:
$ bin/serialnum -s 000.037.2020.108.00039
uint64 = 158916359710
string = 000.037.2020.108.00039
bytes = {25 27 7e4 6c}