memrep

package
Version: v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package memrep provides tools to retrieve low-level representations of Go types.

The race detector will probably complain about this package, so use it only for debugging purposes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Representation

type Representation struct {
	Type  string
	Size  uintptr
	Bytes []byte
}

Representation is a human-friendly representation generated from a Go type and its machine representation. Notice that Bytes is platform-dependent.

func Read

func Read(x interface{}) Representation

Read creates a memory representation of x.

func ReadArray

func ReadArray(x interface{}) Representation

ReadArray creates a memory representation of the underlying array of x.

Source Files

Jump to

Keyboard shortcuts

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