mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
improve error handling for custom validation rule for package gvalid
This commit is contained in:
@ -97,7 +97,7 @@ func (set *Set) AddIfNotExist(item interface{}) bool {
|
||||
}
|
||||
|
||||
// AddIfNotExistFunc checks whether item exists in the set,
|
||||
// it adds the item to set and returns true if it does not exists in the set and
|
||||
// it adds the item to set and returns true if it does not exist in the set and
|
||||
// function `f` returns true, or else it does nothing and returns false.
|
||||
//
|
||||
// Note that, if `item` is nil, it does nothing and returns false. The function `f`
|
||||
|
||||
Reference in New Issue
Block a user