You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package types
|
|
|
|
// cdcEncode returns nil if the input is nil, otherwise returns
|
|
// cdc.MustMarshalBinaryBare(item)
|
|
func cdcEncode(item interface{}) []byte {
|
|
if item != nil && !isTypedNil(item) && !isEmpty(item) {
|
|
return cdc.MustMarshalBinaryBare(item)
|
|
}
|
|
return nil
|
|
}
|