iface

package
v1.24.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package iface provides converters from functions/methods to interfaces, similarly to http.HandlerFunc.

This package is a workaround for https://github.com/golang/go/issues/47487.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stringer

func Stringer(f func() string) fmt.Stringer

Stringer converts a function to fmt.Stringer.

It may be used to avoid adding the String method to the type that might be problematic.

Types

This section is empty.

Jump to

Keyboard shortcuts

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