1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 00:22:41 +08:00
This commit is contained in:
2022-05-06 15:31:57 +08:00
parent e02fe8d846
commit 25af24d7c0
3 changed files with 20 additions and 2 deletions

View File

@ -40,6 +40,7 @@ type CamelCase struct {
func (c CamelCase) MarshalJSON() ([]byte, error) {
var keyMatchRegex = regexp.MustCompile(`\"(\w+)\":`)
marshalled, err := Marshal(c.Value)
converted := keyMatchRegex.ReplaceAllFunc(
marshalled,