codegen

package
v0.0.0-...-68fec7b Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToHexSep

func BytesToHexSep(in []byte, bytesPerSection int) string

Format for use as an array or slice, using hex representation of the numbers bytesPerSection should be >1 and indicate how many bytes to include before adding a break. There are 5 characters per byte ("0x" + two hex + ",").

func BytesToString

func BytesToString(in []byte) string

Generate a (likely invalid UTF8) string holding bytes, which can be used as a constant in golang

func BytesToStringSep

func BytesToStringSep(in []byte, bytesPerSection int) string

Generate a (likely invalid UTF8) string holding bytes, which can be used as a constant in golang. bytesPerSection should be >1 and indicate how many bytes to include before adding a break. There are 4 characters per byte ("\x" plus two hex).

Types

This section is empty.

Jump to

Keyboard shortcuts

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