testfiles

package
v1.23.10 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MyConst1 is a constant.
	MyConst1 = "MyConst1"

	// MyConst2 is a constant.
	MyConst2 = 1234
)

Variables

View Source
var (
	// MyVar1 is a string variable.
	MyVar1 = "MyVar1"

	// MyVar2 is a float variable.
	MyVar2 = 3.14
)
View Source
var MyFunc3 = func() (int, error) {
	return 42, nil
}

Functions

func MyFunc1

func MyFunc1()

func NoArgs

func NoArgs()

func TestFunction

func TestFunction(a int, b string) string

Types

type MyInt

type MyInt int

MyInt is an int.

type MyStruct

type MyStruct struct {
	// Name is a string
	Name string

	PP *MyStruct
}

MyStruct is a struct.

func MyFunc2

func MyFunc2(param1 MyStruct, param2 MyInt) (string, *MyStruct)

func (*MyStruct) ExternalPackage

func (m *MyStruct) ExternalPackage()

ExternalPackage is a method on MyStruct that uses a type from another package.

func (*MyStruct) FindTheMeaningOfLife

func (m *MyStruct) FindTheMeaningOfLife() int

func (*MyStruct) SayHello

func (m *MyStruct) SayHello()

SayHello is a method on MyStruct.

type YourStruct

type YourStruct struct {
	TheMeaningOfLife int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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