structs

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MyFunc

func MyFunc(value int, yes bool) (string, error)

Types

type ColorType

type ColorType int
const (
	Green ColorType = iota
	Yellow
	Red
)

type MyStruct

type MyStruct struct {
	X int
}

type OtherStruct

type OtherStruct struct {
	Y int
	// contains filtered or unexported fields
}

type Person

type Person struct {
	FirstName, LastName string
	Age                 int // Age comment
	// Before nice comment
	Nice *bool // After Nice comment
	// Before Color comment
	Color              ColorType `json:"COLOR_TYPE"`
	OptionalColor      *ColorType
	Father             *Person
	Uncles             []*Person
	Children           []Person
	ChildMap           map[string]Person
	ChildPointerMap    map[string]*Person
	ChildrenMap        map[string][]Person
	ChildrenPointerMap map[string][]*Person
}

Struct comment before type

func (Person) Dump

func (p Person) Dump() string

type YetAnotherStruct

type YetAnotherStruct struct {
	Y int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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