mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 00:22:41 +08:00
any
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user