iface

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 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