1
0
Fork 0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-07-02 16:14:14 +00:00
Xray-core/common/reflect
nobody ac628a9427
API: Improve MarshalToJson() in common/reflect/marshal.go ()
* Serialize enum to string in MarshalToJson().

* MarshalToJson() respect json tags.

* Add insertTypeInfo parameter to MarshalToJson().

* Omit empty string in MarshalToJson().

* Serialize PortList to string in MarshalToJson().

---------

Co-authored-by: nobody <nobody@nowhere.mars>
2024-08-08 10:35:46 -04:00
..
marshal.go API: Improve MarshalToJson() in common/reflect/marshal.go () 2024-08-08 10:35:46 -04:00
marshal_test.go API: Improve MarshalToJson() in common/reflect/marshal.go () 2024-08-08 10:35:46 -04:00