reflectutil

package
v0.0.0-...-2148625 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Overview

Package reflectutil contains reflect utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Swapper deprecated

func Swapper(slice interface{}) func(i, j int)

Swapper returns a function which swaps the elements in slice. Swapper panics if the provided interface is not a slice.

Its goal is to work safely and efficiently for all versions and variants of Go: pre-Go1.5, Go1.5+, safe, unsafe, App Engine, GopherJS, etc.

Deprecated: this moved to the Go standard library. Use reflect.Swapper in Go 1.8+ instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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