Skip to content

Instantly share code, notes, and snippets.

@serverhorror
Created February 3, 2012 14:54
Show Gist options
  • Save serverhorror/1730537 to your computer and use it in GitHub Desktop.
Save serverhorror/1730537 to your computer and use it in GitHub Desktop.
d := time.Now()
b, _ := xml.Marshal(d)
fmt.Println()
fmt.Printf("%s\n", b)
fmt.Println()
Output is: <Time></Time>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment