- What's the trade-off between text and binary encodings?
Text-based encodings are easier to read for a human, as well as easier to debug and write, but they take more space because of it. Binary encodings are difficult to write, read, and debug for a human, but smaller in size. - How does Go behave with a data structure by default when encoding?
The default behavior of Go is to use reflection in order to read the fields and their values. - How can this behavior be changed?
This behavior can be changed by implementing the marshaller interface of the encoding you are using, such as json.Marshaller for JSON. - How does a structure field get encoded in an XML attribute?
The struct field needs to specify the ,attr value in its tag. - What operation is required to decode a gob interface value?
The data types that implement the interface need to be registered in the...
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia