multireturn

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoubleWithErrorFunc

func DoubleWithErrorFunc(throwError bool) (string, error)

///////////// Double WithError Return //////////////

func DoubleWithoutErrorFunc1

func DoubleWithoutErrorFunc1() (int, int)

///////////// Double WithoutError Return //////////////

func DoubleWithoutErrorFunc2

func DoubleWithoutErrorFunc2() (string, string)

func NoReturnFunc

func NoReturnFunc()

///////////// No Return //////////////

func SingleStrWithoutErrorFunc

func SingleStrWithoutErrorFunc(vargs ...int) string

///////////// Single Str WithoutError Return //////////////

func SingleWithErrorFunc

func SingleWithErrorFunc(throwError bool) error

///////////// Single WithError Return //////////////

func SingleWithoutErrorFunc

func SingleWithoutErrorFunc() int

///////////// Single WithoutError Return //////////////

func TripleWithErrorFunc

func TripleWithErrorFunc(throwError bool) (int, int, error)

///////////// Triple Returns With Error //////////////

func TripleWithInterfaceWithoutErrorFunc

func TripleWithInterfaceWithoutErrorFunc() (IntInterFace, IntStrUct, *IntStrUct)

func TripleWithStructWithErrorFunc

func TripleWithStructWithErrorFunc(throwError bool) (*IntStrUct, IntStrUct, error)

func TripleWithoutErrorFunc1

func TripleWithoutErrorFunc1(vargs ...int) (int, int, int)

///////////// Triple Returns Without Error //////////////

func TripleWithoutErrorFunc2

func TripleWithoutErrorFunc2(vargs ...int) (int, string, int)

Types

type FunctionType

type FunctionType func(input int) int

// Function returning function /////

func FunctionReturningFunction

func FunctionReturningFunction() FunctionType

type IntInterFace

type IntInterFace interface {
	Number() int
}

///////////// Triple Interface Returns Without Error //////////////

type IntStrUct

type IntStrUct struct {
	P int
}

///////////// Triple Struct Returns With Error //////////////

func NewIntStrUct

func NewIntStrUct(n int) IntStrUct

func (*IntStrUct) Number

func (is *IntStrUct) Number() int

Jump to

Keyboard shortcuts

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