> For the complete documentation index, see [llms.txt](https://irine-sistiana.gitbook.io/mosdns-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://irine-sistiana.gitbook.io/mosdns-wiki/mosdns-v5/ru-he-bian-xie-xin-cha-jian.md).

# 如何编写新插件

## 编写新插件

可参考实现了  `sleep` 插件。在项目的 `plugin/executable/sleep/sleep.go`。内有详细注释。

编写好插件后，可在 `plugin/enabled_plugin.go` 匿名 import ，注册插件。

## 分享第三方插件

编写好插件后，如果想将插件分享，可以在 github 的 issue 或 discussion 分享。
