helloworld

package
v0.0.0-...-4d88b5a Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMagicNumber

func GetMagicNumber() int

GetMagicNumber returns 42 when properly initialized

func PublicMultiReturn

func PublicMultiReturn(someInt int, someString string) (int, string)

func PublicUnbound

func PublicUnbound(arg1 int) int

PublicUnbound returns the meaning of everything

func PublicUnboundError

func PublicUnboundError(arg1 int) (int, error)

PublicUnboundError returns an error

Types

type Hello

type Hello struct {
	World World
	Foo   int
	Bar   string
	Buzz  []string
	Baz   float32
	// contains filtered or unexported fields
}

Hello is a complex structure

func ListOfHellos

func ListOfHellos() []Hello

func NewHello

func NewHello(world World, foo int, bar string, buzz []string, baz float32) Hello

NewHello constructs a new instance of Hello

func NewHelloPtr

func NewHelloPtr(world World, foo int, bar string, buzz []string, baz float32) *Hello

NewHello constructs a new instance of Hello

func (*Hello) PublicBound

func (h *Hello) PublicBound(arg1 int) (string, error)

PublicBound returns the meaning of everything

func (*Hello) PublicInterface

func (h *Hello) PublicInterface(io io.Reader) (int, error)

type World

type World struct {
	Something string
	// contains filtered or unexported fields
}

World is a nested struct

Jump to

Keyboard shortcuts

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