Go如何比较时间大小:

先把当前时间格式化成相同格式的字符串,然后使用time的Before, After, Equal 方法即可.

这里有oneline的Demo,可以在线修改,运行。https://play.golang.org/p/oRJ_1-DE4l