code: func yaml_emitter_emit_document_end(emitter *yaml_emitter_t, event *yaml_event_t) bool {
  	if event.typ != yaml_DOCUMENT_END_EVENT {
  		return yaml_emitter_set_emitter_error(emitter, "expected DOCUMENT-END")
  	}
  	if !yaml_emitter_write_indent(emitter) {
  		return false
  	}
  	if !event.implicit {
  		// [Go] Allocate the slice elsewhere.
  		if !yaml_emitter_write_indicator(emitter, []byte("..."), true, false, false) {
  			return false
  		}
  		if !yaml_emitter_write_indent(emitter) {
  			return false
  		}
  	}
  	if !yaml_emitter_flush(emitter) {
  		return false
  	}
  	emitter.state = yaml_EMIT_DOCUMENT_START_STATE
  	emitter.tag_directives = emitter.tag_directives[:0]
  	return true
  }
docs: // Expect DOCUMENT-END.