Show memory stats in debug

This commit is contained in:
世界
2022-08-11 12:41:54 +08:00
parent e733bfb803
commit aa0cd04622
6 changed files with 60 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ type JSONObject struct {
linkedhashmap.Map[string, any]
}
func (m *JSONObject) MarshalJSON() ([]byte, error) {
func (m JSONObject) MarshalJSON() ([]byte, error) {
buffer := new(bytes.Buffer)
buffer.WriteString("{")
items := m.Entries()