unsafe2

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 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 SetFieldType added in v0.11.0

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

SetFieldType sets the type of the struct field at the given index, to 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