判断数组或切片为空

len(arr) == 0 & len(slice) == 0

判断结构体类型 是否为空

type member struct {
	Id int64
	Nickname  string
}

func main() {
    var m member
    if  m == (member{}) {
        fmt.Println("m == member{} is empty")
    }
}