MCPcopy Create free account
hub / github.com/go-python/gopy / CallIface

Function CallIface

_examples/iface/iface.go:28–32  ·  view source on GitHub ↗

CallIface calls F() on v

(v Iface)

Source from the content-addressed store, hash-verified

26
27// CallIface calls F() on v
28func CallIface(v Iface) {
29 cpkg.Printf("iface.CallIface...\n")
30 v.F()
31 cpkg.Printf("iface.CallIface... [DONE]\n")
32}
33
34// by default, interface{} is converted to string (most universal type)
35func IfaceString(str interface{}) {

Callers

nothing calls this directly

Calls 2

PrintfFunction · 0.92
FMethod · 0.65

Tested by

no test coverage detected