package
Version:
v0.0.0-...-a287a10
Opens a new window with list of versions in this module.
Published: Feb 21, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
结论,2个结构体若有相同的属性且都是公开访问的,json会丢失该属性
type Person struct {
Sex string `json:"sex"`
}
type Student struct {
Name string `json:"name"`
Id string `json:"id"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.