Documentation ¶
Index ¶
- func CompareDifferenceStructByJson(oldStruct interface{}, newStruct interface{}, update interface{})
- func Json2Struct(str string, obj interface{})
- func JsonI2Struct(str interface{}, obj interface{})
- func Struct2Json(obj interface{}) string
- func Struct2StructByJson(struct1 interface{}, struct2 interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareDifferenceStructByJson ¶
func CompareDifferenceStructByJson(oldStruct interface{}, newStruct interface{}, update interface{})
兩結構體比對不同的字段, 不同時將取struct1中的字段返回, json為中間橋樑, struct3必須以指針方式傳遞, 否則可能獲取到空數據
func Struct2StructByJson ¶
func Struct2StructByJson(struct1 interface{}, struct2 interface{})
結構體轉結構體, json為中間橋樑, struct2必須以指針方式傳遞, 否則可能獲取到空數據
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.