推荐:Golang Reddit API包装器

时间:2021-01-31 20:16:16
【文件属性】:
文件名称:推荐:Golang Reddit API包装器
文件大小:199KB
文件格式:ZIP
更新时间:2021-01-31 20:16:16
bot reddit BotGo w go get github.com/turnage/graw graw是一个用于构建Reddit机器人的库,它可以处理所有您不需要的东西。 ! 从主要版本1开始,API的承诺是:永远不会发生重大变化。 详细信息如下。 这适用于graw的所有(库)子包。 用法 graw的设计是您的机器人是事件的处理程序,Reddit是事件的源,而graw将两者联系在一起。 如果您想在给定的subreddit中宣布所有新帖子,则这是您的机器人: type announcer struct {} func ( a * announcer ) Post ( post * reddit. Post ) error { fmt . Printf ( "%s posted \" %s \" \n " , post . Author , post . Title ) return nil } 使用的让它起作用,并告诉它要订阅哪些事件; w会照顾其余的。 有关更多信息,请参见和。 产品特点 graw的主要功能是强大的事件流。 graw支持许多令人兴奋的事件流: subred
【文件预览】:
graw-master
----go.mod(344B)
----run.go(3KB)
----.github()
--------workflows()
----contributing.md(2KB)
----go.sum(2KB)
----logger.go(158B)
----agentfile.template(271B)
----botfaces()
--------botfaces.go(4KB)
----scan.go(3KB)
----reddit()
--------reddit.go(1KB)
--------minduration.go(171B)
--------reaper_test.go(4KB)
--------client.go(2KB)
--------lurker.go(570B)
--------reaper.go(3KB)
--------appclient.go(2KB)
--------client_test.go(2KB)
--------loader_test.go(989B)
--------app.go(1KB)
--------app_test.go(1KB)
--------errors.go(467B)
--------bot.go(2KB)
--------agentforwarder.go(806B)
--------mockparser_test.go(590B)
--------reddit_test.go(5KB)
--------parse.go(9KB)
--------internal()
--------script.go(1KB)
--------lurker_test.go(651B)
--------data.go(6KB)
--------agentforwarder_test.go(2KB)
--------mockreaper_test.go(679B)
--------mockclient_test.go(230B)
--------loader.go(836B)
--------account.go(3KB)
--------parse_test.go(5KB)
--------scanner.go(2KB)
----streams()
--------streams_test.go(2KB)
--------internal()
--------streams.go(8KB)
----license(1KB)
----.travis.yml(23B)
----contributors.md(420B)
----foreman_test.go(2KB)
----.gitignore(26B)
----foreman.go(1KB)
----readme.md(2KB)
----cmd()
--------feed()
--------act()
----config.go(2KB)
----graw.go(2KB)

网友评论