XML / Configuring XML parsing and serialization /

Run Settings
LanguageGo
Language Version
Run Command
package main import ( "encoding/xml" "fmt" "log" ) type ShowComment struct { Str string `xml:",comment"` } func printXML(v interface{}) { d, err := xml.Marshal(v) if err != nil { log.Fatalf("xml.Marshal failed with '%s'\n", err) } fmt.Printf("XML: %s\n\n", string(d)) } func main() { v := &ShowComment{ Str: "comment", } printXML(v) }
Editor Settings
Theme
Key bindings
Full width
Lines