openGroup opens a new group in the buffer.
(name string)
| 237 | |
| 238 | // openGroup opens a new group in the buffer. |
| 239 | func (s *formatterJSON) openGroup(name string) { |
| 240 | s.groupsOpened++ |
| 241 | |
| 242 | s.appendKey(name) |
| 243 | s.buf.append(jsonGroupOpenToken) |
| 244 | s.sep = nil |
| 245 | } |
| 246 | |
| 247 | // closeGroup closes the most recently opened group in the buffer. |
| 248 | func (s *formatterJSON) closeGroup() { |
no test coverage detected