ep002.01 - Encoding and Decoding XML in Go

preview_player
Показать описание
#golang #encoding #decoding #striversity

What if you had to write some data out in XML format? How would you do it in using golang?

Episode: 2.01

The is, very easy actually.

Basically, ignoring error handling, your code boils down to:

data := &Person{....}
end := xml.NewEncoder(f)
xml.Encode(data)

Decoding from XML is similarly very easy.

Рекомендации по теме
Комментарии
Автор

Excellent video! Thank you for taking the time to put this up, very clear concise and useful....

devon
Автор

A bit confusing in the beginning, to many references to Json and to less references to XML?
Thank you!

higiniofuentes
Автор

wher is the part in which you will do the decoding from XML to array

abhinayshukla