优化convert

This commit is contained in:
白茶清欢 2022-05-14 14:29:54 +08:00
parent d1e81f6f08
commit 82dbcf92d3

View File

@ -34,6 +34,7 @@ type RawBytes []byte
var errNilPtr = errors.New("destination pointer is nil") // embedded in descriptive error var errNilPtr = errors.New("destination pointer is nil") // embedded in descriptive error
// ConvertAssign ...
// convertAssign copies to dest the value in src, converting it if possible. // convertAssign copies to dest the value in src, converting it if possible.
// An error is returned if the copy would result in loss of information. // An error is returned if the copy would result in loss of information.
// dest should be a pointer type. // dest should be a pointer type.