Ivan Velichko 4/10/2019

Truly optional scalar types in protobuf3 (with Go examples)

Read Original

This technical article discusses a limitation in Protocol Buffers 3: the inability to distinguish between an unset scalar field and one explicitly set to its default value. It explains the problem's implications for data modeling and presents the official solution using wrapper types from the Well-Known Types namespace, complete with illustrative Go code examples.

Truly optional scalar types in protobuf3 (with Go examples)

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week