iface

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

package iface tests various aspects of interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallIface

func CallIface(v Iface)

CallIface calls F() on v

func IfaceHandle added in v0.3.0

func IfaceHandle(ifc interface{})

gopy:interface=handle this magic directive says, treat the interface arg as a handle

func IfaceString added in v0.3.0

func IfaceString(str interface{})

by default, interface{} is converted to string (most universal type)

Types

type Iface

type Iface interface {
	F()
}

Iface has a single F() method

type T

type T struct {
	FldI int
	FldS string
}

T implements Iface

func (*T) F

func (t *T) F()

Jump to

Keyboard shortcuts

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

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy