基于 Flow 编程的 Go(Golang)微框架(基于学生核心素养培养的课堂教学设计)

网友投稿 1135 2022-10-11

基于 Flow 编程的 Go(Golang)微框架(基于学生核心素养培养的课堂教学设计)

基于 Flow 编程的 Go(Golang)微框架(基于学生核心素养培养的课堂教学设计)

FlowBase

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:

Patterns for composable concurrent pipelines in GoComposable Pipelines Improved

Installations

go get github.com/flowbase/flowbase/...

(The ellipsis, ..., is important, to get the flowbase commandline tool as well)

Usage

Create a new FlowBase component stub:

flowbase new-component MyComponentName

(More helper commands coming later ...)

Code examples

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 :) ).

Libraries based on FlowBase

SciPipe - A Scientific Workflow engine libraryRDF2SMW - A tool to convert RDF triples to a Semantic MediaWiki XML import file

References

FBP websiteFBP Wikipedia articleFBP google group

Other Go FBP frameworks

GoFlow - The true and original Go FBP frameworkCascades

Even more Go FBP (like) frameworks

Seemingly less mature and/or well-known...

Ryan Peach's GoFlowgo-flow

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:fio test 简单查看一些系统的io性能结果
下一篇:ViewPager 中 Fragment 状态保存的小知识
相关文章

 发表评论

暂时没有评论,来抢沙发吧~