Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#1674·protobuf

Message Reset() should use "clear" to empty m.known & m.ext

Author: brevin-yokeCreated Jan 24, 2025Updated Aug 5, 2026
Labelsperformance

go1.21 add new builtin function clear() https://tip.golang.org/ref/spec#Clear

Message interface Reset() should use clear to empty all map

Source: golang/protobuf

View original on GitHubView discussion on GitHub