yinggaozhen / awesome-go-cn Goto Github PK
View Code? Open in Web Editor NEW一个很棒的Go框架、库和软件的中文收录大全。:alarm_clock:脚本定期与英文文档同步,包含了各工程star数/最近更新时间,助您快速发现优质项目。Awesome Go~
Home Page: https://awesome-go.cn
License: MIT License
一个很棒的Go框架、库和软件的中文收录大全。:alarm_clock:脚本定期与英文文档同步,包含了各工程star数/最近更新时间,助您快速发现优质项目。Awesome Go~
Home Page: https://awesome-go.cn
License: MIT License
在 web 框架里没收录 Iris
https://github.com/zhangheli/go-ticker
go-ticker是高性能定时器库
feature
支持周期性定时器
一次性定时器
import (
"github.com/antlabs/timer"
"log"
)
func main() {
tm := timer.NewTimer()
tm.AfterFunc(1*time.Second, func() {
log.Printf("after\n")
})
tm.AfterFunc(10*time.Second, func() {
log.Printf("after\n")
})
tm.Run()
}
周期性定时器
package main
import (
"fmt"
"testing"
"time"
"github.com/zhangheli/go-ticker/ticker"
)
func TestTicker(t *testing.T) {
action := func() {
fmt.Println(time.Now())
}
stopC := make(chan string, 1)
st := ticker.SecondTicker{}
st.SetPoint([]int{1, 100, 200, 300, 400, 500})
st.Run(stopC, action)
<-make(chan int, 1)
}
运行结果
2022-07-22 12:44:54.001083 +0800 CST m=+4.560425084
2022-07-22 12:44:54.100082 +0800 CST m=+4.659426001
2022-07-22 12:44:54.200079 +0800 CST m=+4.759425417
2022-07-22 12:44:54.300076 +0800 CST m=+4.859424334
2022-07-22 12:44:54.400075 +0800 CST m=+4.959425834
2022-07-22 12:44:54.500073 +0800 CST m=+5.059426042
平均 0.07 ms 误差
爆破型定时器,加特林突击
package main
import (
"fmt"
"testing"
"time"
"github.com/zhangheli/go-ticker/ticker"
)
func TestGatlin(t *testing.T) {
action := func() {
fmt.Println(time.Now())
}
now := time.Now().UnixMilli()
p := now + (1000 - now%1000)
runBegin := time.UnixMilli(p)
ticker.GatlinWithLimit(runBegin, 10, action)
}
运行效果
2022-07-22 12:50:14.000916 +0800 CST m=+0.511891751
2022-07-22 12:50:14.005861 +0800 CST m=+0.516837167
2022-07-22 12:50:14.010862 +0800 CST m=+0.521838209
2022-07-22 12:50:14.015867 +0800 CST m=+0.526842751
2022-07-22 12:50:14.020858 +0800 CST m=+0.531834667
2022-07-22 12:50:14.025865 +0800 CST m=+0.536841709
2022-07-22 12:50:14.030859 +0800 CST m=+0.541835459
2022-07-22 12:50:14.035908 +0800 CST m=+0.546884584
2022-07-22 12:50:14.040165 +0800 CST m=+0.551141667
2022-07-22 12:50:14.045885 +0800 CST m=+0.556862126
2022-07-22 12:50:14.050858 +0800 CST m=+0.561834751
误差 0.1 ~ 0.8ms 左右
https://github.com/mgechev/revive
revive is a
Fast, configurable, extensible, flexible, and beautiful linter for Go. Drop-in replacement of golint. Revive provides a framework for development of custom rules, and lets you define a strict preset for enhancing your development & code review processes.
How about moving that effort to the awesome-go main repository README-CN.md
? @yinggaozhen you can continue coordinating this work there (give you access)
项目指向的是一个fork地址:
https://github.com/hsluoyz/casbin
源地址因该是:
https://github.com/casbin/casbin
https://github.com/yinggaozhen/awesome-go-cn#goroutines
ants star:4420 一个高性能和低成本的goroutine池在围棋。
应当翻译成“一个高性能且低损耗的 goroutine 池”,来自ants项目的官方描述。
首先,感谢增强 awesome-go,我也弄了一个,不过没正式放出来,看你弄了,我的也就不弄了,不重复劳动。
不过,提个意见,个人如果要翻译,得人工认真翻译,否则建议别翻译了。比如:
studygolang - The community of studygolang in China
翻译成了:studygolang - **学生群体
醉了~
服务端专家工程师(PHP/GO)
岗位职责:
1、负责顺风车增长营销活动的需求支撑,以及相关的营销体系技术建设工作;
2、负责顺风车订单、路线、邀请、支付、计价等交易业务相关的需求支撑和对应系统技术建设工作;
3、负责顺风车运营平台的需求支撑,以及相关系统模块技术架构工作;
4、负责顺风车信息安全、稳定性、成本、性能等技术体系建设工作;
5、负责LNMP、GO两大语言栈的相关技术体系的建设
任职资格:
1、有大型复杂系统架构设计经验
2、具备一定的业务洞察力,具备前瞻性的技术规划能力
3、具备良好的项目管理,时间管理,风险管理能力
4、主动积极,沟通能力良好,合作利他意识强
简历投递(可在线面试):
邮箱 : [email protected]
服务端资深测试开发工程师
岗位职责:
1. 负责服务端项目的质量保障,确保项目能如期上线。
2. 参与产品需求和技术架构设计评审,评估整体技术架构合理性以及可测性,给出合理建议。
3. 运用测试相关流程、策略、方法和工具等,努力提升测试的质量和效率。
4. 沉淀通用测试的解决方案,主导关键技术的专项建设。
5. 测试领域前瞻性探索,推进整个测试团队技术进步。
任职资格:
1. 工科、计算机相关专业本科以上学历, 5年以上软件测试开发、自动化测试或白盒测试工作经验。
2. 熟悉软件开发、测试理论和流程。
3. 熟练C/C++/go/python/php等至少一种编程语言;
4. 熟悉软件测试的常用自动化框架,稳定性或者性能相关的基本知识及工具使用;
5. 具备广泛的技术视野和很好的技术前瞻性,对测试行业发展有自己的思考及总结;
简历投递(可在线面试):
邮箱 : [email protected]
资深/高级前端研发工程师
岗位职责:
1、负责研发跨多端业务,保证安全产品需求功能的高质量上线
2、持续提升安全能力、提高业务稳定性、提高开发效率、提升用户体验,无论在安全还是产品上都能追求极致
3、参与团队内跨端解决方案等工具的开发,一起打造业界具有影响力的团队
任职资格:
1、本科及以上学历,技能突出者不限,3年以上前端开发经验;
2、熟知W3C标准,熟练掌握HTML、CSS、JavaScript(含HTML5、CSS3);
3、熟悉流行的框架及类库:Vue、React、angular、jQuery、Zepto等,对跨端框架及解决方案有深入了解者优先;
4、熟悉工程化工具(例如Webpack、Gulp、FIS、Grunt等)和构建发布流程;
5、熟练使用git等版本管理工具;
6、至少了解一种后端语言,例如:NodeJS、PHP、Go、Java等,有跨端开发经验者优先。
简历投递(可在线面试):
邮箱 : [email protected]
你可以快速浏览贡献者名单contribution guidelines. 感觉所有为此项目付出的同学contributors; 你真棒!
现 README.md 中 ⬆ back to top(#contents)
的锚点 contents
翻译后为 内容
,因此锚点也需要修改。
提了PR,发现是走Action更新的,我稍后关掉PR。
这个是如何判定的呢?
机器翻译的很多句子都是错误的,也不通顺。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.