test

package
v1.6.12 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoEqErr = "src, dest is not eq"
)

Variables

This section is empty.

Functions

func Equal

func Equal(dest, src interface{}) bool

func StructValEqual

func StructValEqual(dest, src interface{}) bool

Types

type Man

type Man struct {
	Id       int32  `json:"id,omitempty" gorm:"id" db:"id"`
	Name     string `json:"name,omitempty" gorm:"name" db:"name"`       // 姓名
	SName    string `json:"s_name,omitempty" gorm:"s_name" db:"s_name"` // 学名
	Age      int32  `json:"age,omitempty" gorm:"age" db:"age"`
	Addr     string `json:"addr,omitempty" gorm:"addr" db:"addr"`
	Hobby    string `json:"hobby,omitempty"`
	NickName string `json:"nickname,omitempty" gorm:"nickname" db:"nickname"`
	JsonTxt  Tmp    `json:"json_txt,omitempty"`
	XmlTxt   Tmp    `json:"xml_txt,omitempty"`
	Json1Txt Tmp    `json:"json1_txt,omitempty"`
}

type Tmp

type Tmp struct {
	Name string `json:"name,omitempty" xml:"name"`
	Data string `json:"data,omitempty" xml:"data"`
}

Jump to

Keyboard shortcuts

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