closeGroup closes the most recently opened group in the buffer.
()
| 246 | |
| 247 | // closeGroup closes the most recently opened group in the buffer. |
| 248 | func (s *formatterJSON) closeGroup() { |
| 249 | s.groupsOpened-- |
| 250 | |
| 251 | s.buf.append(jsonGroupCloseToken) |
| 252 | s.sep = jsonAttributeSep |
| 253 | } |
| 254 | |
| 255 | // jsonSafeSet is a set of runes that are safe to include in JSON strings without escaping. |
| 256 | // Some runes here are explicitly marked as unsafe for clarity. |
no test coverage detected