unsafe2

package
Version: v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 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 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.

Source Files

Jump to

Keyboard shortcuts

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