- 博客(2)
- 收藏
- 关注
原创 程序员修养
转载于 极客时间专栏“左耳听风”《程序员练级攻略:程序员修养》要了解程序员的修养,你可以先从 Quora 上的这个贴子开始 “What are some of the most basic things every programmer should know?”,我摘录一些在这里供你参考。Bad architecture causes more problems than bad code.You will spend more time thinking than coding....
2020-09-10 16:27:37
766
原创 golang time.Duration 自定义变量报错解决
对于time.Duration类型,如果采用 time.Duration类型 * int变量 会报错,而直接和数字相乘则不会出现;具体是为什么呢?怎么解决呢?错误:Invalid operation: time.Millisecond * idcTimeOut (mismatched types Duration and int64)原因:因为类型不匹配,time.Duration类型 不能直接和 int类型相乘,需要先将变量转换为time.Duration解决方式:time.Duratio
2020-06-11 18:11:52
8654
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人