Skip to content

Commit

Permalink
Run make fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Yutaro Suzuki <yutaro.suzuki@cloudys.dev>
  • Loading branch information
yutaro1985 committed Jun 29, 2023
1 parent a375aa7 commit 090efce
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions internal/types/types.go
Expand Up @@ -347,24 +347,26 @@ func (s sortmapkeys) Less(i, j int) bool { return s[i] < s[j] }
// MarshalXML custom marshal function which converts map to its literal
// XML representation. For example:
//
// m := Map{
// "a": 1,
// "b": 2,
// "c": 3,
// }
// m := Map{
// "a": 1,
// "b": 2,
// "c": 3,
// }
//
// type foo struct {
// Value Map `xml:"value"`
// }
// type foo struct {
// Value Map `xml:"value"`
// }
//
// will get marshaled to:
//
// <foo>
// <value>
// <a>1</a>
// <b>2</b>
// <c>3</c>
// </value>
//
// <value>
// <a>1</a>
// <b>2</b>
// <c>3</c>
// </value>
//
// </foo>
func (m Map) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
if len(m) == 0 {
Expand Down

0 comments on commit 090efce

Please sign in to comment.