Skip to content

Commit

Permalink
IsAnyBlank
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyoubo authored and gaoyoubo committed Nov 18, 2020
1 parent a5683e1 commit 89a57cc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions str.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ func IsBlank(str string) bool {
return true
}

func IsAnyBlank(strs ...string) bool {
for _, str := range strs {
if IsBlank(str) {
return true
}
}
return false
}

func IsNotBlank(str string) bool {
return !IsBlank(str)
}
Expand Down

0 comments on commit 89a57cc

Please sign in to comment.