testobj

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestFinance

type TestFinance struct {
	MoneyIn  float64
	MoneyOut float64
	Balance  float64
	AllowBuy bool
	History  []TestHistory
}

func (*TestFinance) Clear

func (f *TestFinance) Clear()

type TestFlag

type TestFlag map[string]int32

type TestFloatPtrSlice

type TestFloatPtrSlice []*float32

type TestFloatSlice

type TestFloatSlice []float32

type TestHistory

type TestHistory struct {
	DateUnix int64
	Cost     float64
	Comment  []byte
}

func (*TestHistory) Clear

func (h *TestHistory) Clear()

type TestObject

type TestObject struct {
	Id          string
	Name        []byte
	Status      int32
	Ustate      uint64
	Cost        float64
	Permission  *TestPermission
	HistoryTree map[string]*TestHistory
	Flags       TestFlag
	Finance     *TestFinance
}

func (*TestObject) Clear

func (o *TestObject) Clear()

type TestObject1

type TestObject1 struct {
	IntSlice        []int32
	IntPtrSlice     []*int32
	IntSlicePtr     *[]int32
	IntPtrSlicePtr  *[]*int32
	ByteSlice       []byte
	BytePtrSlice    []*byte
	ByteSlicePtr    *[]byte
	BytePtrSlicePtr *[]*byte

	FloatSlice       TestFloatSlice
	FloatPtrSlice    TestFloatPtrSlice
	FloatSlicePtr    *TestFloatSlice
	FloatPtrSlicePtr *TestFloatPtrSlice

	StructSlice        []TestStruct
	StructPtrSlice     []*TestStruct
	StructSlicePtr     *[]TestStruct
	StructPtrSlicePtr  *[]*TestStruct
	StructSliceLiteral TestStructSliceLiteral

	IntStringMap          map[int]string
	IntStringPtrMap       map[int]*string
	IntStringMapPtr       *map[int]string
	IntStringPtrMapPtr    *map[int]*string
	IntPtrStringPtrMapPtr *map[*int]*string

	IntIntMapMap map[int32]map[int32]int32

	StringFloatMap          TestStringFloatMap
	StringFloatPtrMap       TestStringFloatPtrMap
	StringFloatMapPtr       *TestStringFloatMap
	StringFloatPtrMapPtr    *TestStringFloatPtrMap
	StringPtrFloatPtrMapPtr *TestStringPtrFloatPtrMap

	FloatStructMap          map[float64]TestStruct
	FloatStructPtrMap       map[float64]*TestStruct
	FloatPtrStructMap       map[*float64]TestStruct
	FloatPtrStructPtrMap    map[*float64]*TestStruct
	FloatPtrStructPtrMapPtr *map[*float64]*TestStruct

	NestedStruct    TestStruct
	NestedStructPtr *TestStruct
}

type TestPermission

type TestPermission map[int32]bool

type TestStringFloatMap

type TestStringFloatMap map[string]float64

type TestStringFloatPtrMap

type TestStringFloatPtrMap map[string]*float64

type TestStringPtrFloatPtrMap

type TestStringPtrFloatPtrMap map[*string]*float64

type TestStruct

type TestStruct struct {
	A   byte
	S   string
	B   []byte
	I   int
	I8  int8
	I16 int16
	I32 int32
	I64 int64
	U   uint
	U8  uint8
	U16 uint16
	U32 uint32
	U64 uint64
	F   float32
	D   float64
}

type TestStructSliceLiteral

type TestStructSliceLiteral []*TestStruct

Jump to

Keyboard shortcuts

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