We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7de554 commit b55b118Copy full SHA for b55b118
app/models/requests.go
@@ -13,8 +13,6 @@ import (
13
log "github.com/sirupsen/logrus"
14
)
15
16
-var caser = cases.Title(language.AmericanEnglish)
17
-
18
type CreateQueueRequest struct {
19
QueueName string `json:"QueueName" schema:"QueueName"`
20
Attributes QueueAttributes `json:"Attributes" schema:"Attribute"`
@@ -766,7 +764,7 @@ func (r *PublishRequest) SetAttributesFromForm(values url.Values) {
766
764
r.MessageAttributes = make(map[string]MessageAttribute)
767
765
}
768
attributes[name] = MessageAttribute{
769
- DataType: caser.String(dataType), // capitalize
+ DataType: cases.Title(language.AmericanEnglish).String(dataType), // capitalize
770
StringValue: stringValue,
771
BinaryValue: []byte(binaryValue),
772
0 commit comments