A Flow-based Programming (FBP) micro-framework for Go (Golang).
The aim of FlowBase, as opposed to being a full-blown framework, is to provide just enough functionality on top of the existing FBP-like primives in Golang (channels with bounded buffers, asynchronous go-routines), to enable developing data processing applications with it. Thus the term "FBP micro-framework".
The pattern has previously been described in the following blog posts on GopherAcademy:
Status: The current version is an enhanced version of the above pattern, based on functionality subsequently developed in the SciPipe library.
First, make sure you have initialized a go module in your library, with:
go mod init <name-of-package>
(Note that this could be e.g go mod init github.com/yourusername/yourpackage
, or just a local name such as youpackage
)
Then, install the latest version of the flowbase library to your module:
go get github.com/flowbase/flowbase@latest
For a code example, see the examples folder here in the repo.
Note: The below code currently uses an earlier version of the FlowBase library.
For a real-world example, see this code
defining an app to transform from semantic RDF data to wiki pages in MediaWiki XML format (the network connection code is highlighted, to help you find the interesting parts quick :) ).
Seemingly less mature and/or well-known...
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。