摘要:
练习 9.1: 给gopl.io/ch9/bank1程序添加一个Withdraw(amount int)取款函数。其返回结果应该要表明事务是成功了还是因为没有足够资金失败了。这条消息会被发送给monitor的goroutine,且消息需要包含取款的额度和一个新的channel,这个新channel会 阅读全文
posted @ 2018-05-17 15:33
唯一客服系统开发笔记
阅读(653)
评论(0)
推荐(0)