From 18b85f14dd51472e0ba1565f78a8ded47bd337f5 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Mon, 18 Apr 2022 11:01:47 +0300 Subject: [PATCH] minor: ci --- .github/workflows/ci.yml | 2 +- context/problem.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb9232d8..7c84c8e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: - go_version: [1.18] + go_version: [1.18.x] steps: - name: Set up Go 1.x diff --git a/context/problem.go b/context/problem.go index b70a427e..b5203545 100644 --- a/context/problem.go +++ b/context/problem.go @@ -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})