fmtutil

package
v0.0.0-...-119448c Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2018 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package fmtutil contains formatting helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hex

type Hex []byte

Hex is a byte slice that renders as a hex-dumped string.

It can be used for easy lazy hex dumping.

func (Hex) String

func (h Hex) String() string

type HexSlice

type HexSlice []byte

HexSlice is a byte slice that renders as a sequence of hex bytes, instead of the default decimal bytes.

Output as: "[4]vbyte{0x!0, 0x20, 0x30, 0x40}"

It can be used for easy lazy hex dumping.

func (HexSlice) String

func (hs HexSlice) String() string

Jump to

Keyboard shortcuts

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