exampleinterface

package
v0.0.5-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterfaceComplex

func InterfaceComplex(x Complex)

func InterfaceFuncEmpty

func InterfaceFuncEmpty(x interface{})

func InterfaceFuncSimple

func InterfaceFuncSimple(x Simple)

func InterfaceFuncSimpleWithReturn

func InterfaceFuncSimpleWithReturn(x SimpleWithReturn)

func InterfaceNested

func InterfaceNested(x Nested)

Types

type Complex

type Complex interface {
	Hello(x *int) [2]byte
	World(x Simple) (*Some, error)
}

type Nested

type Nested interface {
	Simple

	World(x int) int
}

type Simple

type Simple interface {
	Hello(x int)
}

type SimpleWithReturn

type SimpleWithReturn interface {
	Hello(x int) int
}

type Some

type Some struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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