utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteSlicePrintf added in v0.3.0

func ByteSlicePrintf(tmplt string, separator string, subByteSlices ...[]byte) []byte

Performs the fmt.Printf equivalent for byte arrays, without converting the slices to string at any time. Usage example: key := []byte{'k', 'e', 'y'} value := []byte{'v', 'a', 'l', 'u', 'e'} utils.ByteSlicePrintf(`%v: %v`, "%v", key, value)

Types

This section is empty.

Jump to

Keyboard shortcuts

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