Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/childe/gohangout-decode-empty
https://github.com/childe/gohangout-decode-empty
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/childe/gohangout-decode-empty
- Owner: childe
- Created: 2019-12-11T13:36:16.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-11T13:40:12.000Z (almost 5 years ago)
- Last Synced: 2023-03-11T23:31:54.009Z (over 1 year ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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: {}
```