_samples

command
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Overview

This example demonstrates an integer heap built using the heap interface.

Regression test: %#v on a slice whose element is a defined type with a Format method must qualify the type name and dispatch each element through the user Format body.

Regression test: closure-in-struct dispatch under fmt.Sprintf("%+v") on a recursively wrapped error chain. Mirrors pkg/errors' TestFormatGeneric shape so the bridged Format path stays exercised.

Regression test: closure stored in a struct field, iterated via for-range across nested recursion. Each wrap closure must run its own body; tag and fn must stay in sync.

Jump to

Keyboard shortcuts

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