From 89a57cc9b49f6c9dd54be315b3d722c4b80db6f9 Mon Sep 17 00:00:00 2001 From: gaoyoubo Date: Wed, 18 Nov 2020 16:35:11 +0800 Subject: [PATCH] IsAnyBlank --- str.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/str.go b/str.go index 5bbdf8c..a128c2b 100644 --- a/str.go +++ b/str.go @@ -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) }