熵减

标签:函数转换成接口

共 1 篇文章

深入理解GO Slice切片

写在前面 今天看 cron (https://github.com/robfig/cron)源码的时候发现它支持Regist函数和接口,有一点思考。 上代码 // 定义了任务接口 type Job interface { Run() } /