mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
minor: ci
This commit is contained in:
parent
1e5cbf9e24
commit
18b85f14dd
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go_version: [1.18]
|
go_version: [1.18.x]
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Set up Go 1.x
|
- name: Set up Go 1.x
|
||||||
|
|
|
@ -231,6 +231,9 @@ func (p Problem) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// toTitle := cases.Title(language.English)
|
||||||
|
// toTitle.String(k)
|
||||||
|
|
||||||
for k, v := range p {
|
for k, v := range p {
|
||||||
// convert keys like "type" to "Type", "productName" to "ProductName" and e.t.c. when xml.
|
// 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})
|
err = e.Encode(xmlMapEntry{XMLName: xml.Name{Local: strings.Title(k)}, Value: v})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user