jjson

package
v0.0.0-...-a287a10 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func D

func D()

结论,2个结构体若有相同的属性且都是公开访问的,json会丢失该属性

Types

type Person

type Person struct {
	//Name string `json:"name"` //TODO name
	Sex string `json:"sex"`
}

type Student

type Student struct {
	Name string `json:"name"` //TODO name
	Id   string `json:"id"`
}

type User

type User struct {
	*Person
	*Student // TODO name会重复.
}

Jump to

Keyboard shortcuts

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