2019-02-16T23:28:16Z||2019-02-16T23:28:16Z


如下code:

func GetConn() Post* {
}

为什么呢?我都已经有function body,问题出在Post*,可能你是C++背景,指针放在类型后面,而Go的指针是在前面的,然后这个error message太misleading了,改成:

func GetConn() *Post {
}