usegenerics

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package usegenerics is used for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtomicPointer

func AtomicPointer() int

AtomicPointer calls various methods on an instantiation of the generic type atomic.Pointer.

func Bar

func Bar() int

Bar calls a generic function.

func CallNestedFunction

func CallNestedFunction() int

CallNestedFunction calls a function that is nested in a generic function.

func Foo

func Foo[T i](a T, b int) int

Foo is a generic function used for testing.

func NestedFunction

func NestedFunction[T i](a T, b int) func() int

NestedFunction is a generic function that returns a nested function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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