udwShmTest

package
v0.0.0-...-f254aa5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(obj interface{}) (data []byte, errMsg string)

func MsgV5Equal

func MsgV5Equal(a MsgV5, b MsgV5)

func MsgV5Equal_Simple

func MsgV5Equal_Simple(a MsgV5, b MsgV5_Simple)

func RunTest

func RunTest()

func SetMarshaler

func SetMarshaler(Marshal func(obj interface{}) (data []byte, errMsg string), Unmarshal func(data []byte, obj interface{}) (errMsg string))

func Unmarshal

func Unmarshal(data []byte, obj interface{}) (errMsg string)

Types

type Inter

type Inter interface{}

type Marshaler

type Marshaler struct {
	Marshal   func(obj interface{}) (data []byte, errMsg string)
	Unmarshal func(data []byte, obj interface{}) (errMsg string)
}

type MsgV3

type MsgV3 struct {
	Id int
}

type MsgV4

type MsgV4 MsgV3

type MsgV5

type MsgV5 struct {
	Data            []byte
	Name            string
	ByteArray       [8]byte
	IntArray        [8]int
	Float64Slice    []float64
	IntPtr          *int
	IntPtr2         *int
	StringMsgV4Map  map[string]MsgV4
	IntStringPtrMap map[int]*string
	MapPtrKey       map[string]int
	V3              MsgV3
	V3List          []MsgV3
	UseRecord       []Record
	V4              MsgV4
	V4List          []MsgV4
	PtrV4List       *[]MsgV4
	V4PtrList       []*MsgV4
	TestTime        time.Time
	IsRoot          bool
	U32             uint32
	PtrTime         *time.Time
	TimeDuration    time.Duration
	Skip1           int `json:"-"`
	Skip2           int `json:"-,omitempty"`

	Float32Slice    []float32
	IntListListList [][][]int
	F32             float32
	// contains filtered or unexported fields
}

type MsgV5_Simple

type MsgV5_Simple struct {
	StringMsgV4Map map[string]MsgV4
}

type Record

type Record struct {
	Id   int64
	Name string
	F    float64
}

Jump to

Keyboard shortcuts

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