minor: ci

This commit is contained in:
Gerasimos (Makis) Maropoulos 2022-04-18 11:01:47 +03:00
parent 1e5cbf9e24
commit 18b85f14dd
No known key found for this signature in database
GPG Key ID: 66FCC29BD385FCA6
2 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
go_version: [1.18]
go_version: [1.18.x]
steps:
- name: Set up Go 1.x

View File

@ -231,6 +231,9 @@ func (p Problem) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
return err
}
// toTitle := cases.Title(language.English)
// toTitle.String(k)
for k, v := range p {
// convert keys like "type" to "Type", "productName" to "ProductName" and e.t.c. when xml.
err = e.Encode(xmlMapEntry{XMLName: xml.Name{Local: strings.Title(k)}, Value: v})