mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
comment update;standardize const naming for package gtcp/gudp
This commit is contained in:
@ -286,10 +286,9 @@ func IsEmpty(value interface{}) bool {
|
||||
//}
|
||||
|
||||
// IsNil checks whether given `value` is nil.
|
||||
// Parameter `traceSource` is used for tracing to the source variable if given `value` is type
|
||||
// of a pinter that also points to a pointer. It returns nil if the source is nil when `traceSource`
|
||||
// is true.
|
||||
// Note that it might use reflect feature which affects performance a little bit.
|
||||
// Parameter `traceSource` is used for tracing to the source variable if given `value` is type of pinter
|
||||
// that also points to a pointer. It returns nil if the source is nil when `traceSource` is true.
|
||||
// Note that it might use reflect feature which affects performance a little.
|
||||
func IsNil(value interface{}, traceSource ...bool) bool {
|
||||
if value == nil {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user