Skip to content

Instantly share code, notes, and snippets.

View adsr303's full-sized avatar

Artur de Sousa Rocha adsr303

  • Kraków, Poland
View GitHub Profile
@adsr303
adsr303 / bool_yn.go
Created March 6, 2024 21:12
Custom Go bool type with marshaling to Y/N
package main
import (
"encoding/xml"
"fmt"
)
type BoolYN bool
func (b BoolYN) MarshalXMLAttr(name xml.Name) (xml.Attr, error) {