gobytes

command
v0.0.0-...-4e9b90d Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Command gobytes prints its input as a []byte literal.

Examples:

$ echo foo | gobytes
[]byte{0x66, 0x6f, 0x6f, 0xa}

$ echo foo | gobytes -s
"foo\n"

Flag -s prints a string literal instead of []byte.

Jump to

Keyboard shortcuts

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