Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/childe/gohangout-decode-empty


https://github.com/childe/gohangout-decode-empty

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

[https://github.com/childe/gohangout](https://github.com/childe/gohangout) 插件示例.

Golang 的 Plugin 文档参考 [https://tip.golang.org/pkg/plugin/](https://tip.golang.org/pkg/plugin/)

创建一个 decoder, 将 input 进来的数据, 编译成一个空字典(所以这种东西实际情况上根本不会用到吧)

## 编译

将 empty_decoder.go 复制到 gohangout 主目录下面, 运行

```shell
go build -buildmode=plugin -o empty_decoder.so empty_decoder.go
```

## gohangout 配置示例

```yaml
inputs:
- Stdin:
codec: '/path/to/emptydecoder.so'
outputs:
- Stdout: {}
```