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.
Source Files
¶
- builtin_field_name.go
- cmp.go
- context1.go
- context2.go
- fib.go
- fib35.go
- generic.go
- generic_embedded.go
- generic_forward.go
- generic_method_after_use.go
- generic_method_ptr.go
- generic_ptr_type_arg.go
- generic_var_infer.go
- heap.go
- import1.go
- import2.go
- import3.go
- import4.go
- import_blank_line.go
- import_generic.go
- init0.go
- init1.go
- init2.go
- init_iface.go
- init_indirect_call.go
- init_method.go
- init_order.go
- interface42.go
- intf1.go
- iter1.go
- json_encoder_generic.go
- json_nested_marshaler.go
- json_nested_unmarshaler.go
- map_var_key.go
- maps.go
- methodorder.go
- named_byte_methods.go
- named_return_ptr_method.go
- named_return_redef.go
- named_slice_goverbs.go
- nested_exprstmt_popexpr.go
- rangefunc1.go
- rangefunc2.go
- rangefunc3.go
- runtime_callers.go
- short_decl_local_rebind.go
- short_decl_param_rebind.go
- sieve.go
- slices.go
- sort1.go
- struct19.go
- struct_field_shadow_local.go
- type_blank_line.go
- unsafe1.go
- unsafe10.go
- unsafe11.go
- unsafe12.go
- unsafe2.go
- unsafe3.go
- unsafe4.go
- unsafe5.go
- unsafe6.go
- unsafe7.go
- unsafe8.go
- unsafe9.go
- wrap_chain_format.go
- wrap_chain_repro.go
Click to show internal directories.
Click to hide internal directories.