1
0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-03-22 16:13:51 +03:00
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
..