Discover Packages
github.com/Vonage/gosrvlib
pkg
typeutil
package
Version:
v1.68.0
Opens a new window with list of versions in this module.
Published: Apr 14, 2023
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package typeutil contains a collection of type-related utility functions.
Decode decodes a message encoded with the Encode function to the provided data object.
The value underlying data must be a pointer to the correct type for the next data item received.
Encode encodes and serialize the input data to a gob/base64 string.
IsNil returns true if the input value is nil.
IsZero returns true if the input value is equal to the zero instance (e.g. empty string, 0 int, nil pointer).
Serialize encodes the input data to a string that can be used for object comparison (json/base64).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.