IsEmpty check error
charmfocus opened this issue · comments
wiki commented
type MyString string
var myStr MyString
ck := funk.IsEmpty(myStr)
fmt.Println(ck)// print false
Arun Poudel commented
This is how it works in go: Read more about it here: https://www.calhoun.io/when-nil-isnt-equal-to-nil/
To fix your issue you can probably do:
ck := funk.IsEmpty(string(myStr))