comment update;standardize const naming for package gtcp/gudp

This commit is contained in:
John Guo
2021-08-08 13:10:21 +08:00
parent dc407bf293
commit fc1dfb7ff9
17 changed files with 114 additions and 112 deletions

View File

@ -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