unsafe2

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DummyType = reflect.TypeOf(dummy{})

DummyType represents a stand-in for a recursive type.

Functions

func SwapFieldType

func SwapFieldType(s reflect.Type, idx int, t reflect.Type)

SwapFieldType swaps the type of the struct field with the given type.

The struct type must have been created at runtime. This is very unsafe.

Types

This section is empty.

Jump to

Keyboard shortcuts

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