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 TestFunction ¶
Types ¶
type MyStruct ¶
MyStruct is a struct.
func (*MyStruct) ExternalPackage ¶
func (m *MyStruct) ExternalPackage()
ExternalPackage is a method on MyStruct that uses a type from another package.
func (*MyStruct) FindTheMeaningOfLife ¶
type YourStruct ¶
type YourStruct struct {
TheMeaningOfLife int
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.