crosspkg

package
v0.0.0-...-3f1f8f2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0, BSD-3-Clause, MIT Imports: 1 Imported by: 0

Documentation

Overview

Package crosspkg is a second package for testing.

Index

Constants

This section is empty.

Variables

View Source
var (
	// +checklocks:FooMu
	Foo   int
	FooMu sync.Mutex
)

Functions

This section is empty.

Types

type GenericGuard

type GenericGuard[T any] struct {
	Mu sync.Mutex
	// +checklocks:Mu
	Value T
}

GenericGuard is a generic type with a guarded field. This is used to verify that facts exported by this package are correctly imported when another package instantiates GenericGuard[T].

Jump to

Keyboard shortcuts

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