Skip to content

Add IsEmpty() chained method

Compare
Choose a tag to compare
@JosiahWitt JosiahWitt released this 15 Jan 02:54
· 169 commits to master since this release
bb2d171

Now supports checking for empty arrays, slices, strings, and maps with IsEmpty(). For example:

ensure([]string{}).IsEmpty()