https://github.com/hiroakis/bb
https://github.com/hiroakis/bb
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hiroakis/bb
- Owner: hiroakis
- Created: 2017-12-21T09:37:47.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-26T01:36:03.000Z (over 8 years ago)
- Last Synced: 2025-02-14T16:39:48.596Z (over 1 year ago)
- Language: Go
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bb
bb is a command line tool to replace hex string with Go byte slice.
# Installation
```
go install github.com/hiroakis/bb@latest
```
# Use case
* command line
Run bb command with an argument.
```
# bb 16bf0f1e88de
```
You will get `[]byte{0x16, 0xbf, 0x0f, 0x1e, 0x88, 0xde}`
* vim visual mode
Select the line and run bb as a external command `!bb`
```
16bf0f1e88de
:'<,'>!bb
```
The line `16bf0f1e88de` will be replaced with `[]byte{0x16, 0xbf, 0x0f, 0x1e, 0x88, 0xde}`
# License
MIT