mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-30 04:20:53 +00:00
Update Go AWS SDK to the latest version
This commit is contained in:
committed by
Andrey Smirnov
parent
d08be990ef
commit
94a72b23ff
+6
-2
@@ -99,8 +99,12 @@ func enumFields(t reflect.Type, opts MarshalOptions) []field {
|
||||
|
||||
fieldTag := tag{}
|
||||
fieldTag.parseAVTag(sf.Tag)
|
||||
if opts.SupportJSONTags && fieldTag == (tag{}) {
|
||||
fieldTag.parseJSONTag(sf.Tag)
|
||||
// Because MarshalOptions.TagKey must be explicitly set, use it
|
||||
// over JSON, which is enabled by default.
|
||||
if opts.TagKey != "" && fieldTag == (tag{}) {
|
||||
fieldTag.parseStructTag(opts.TagKey, sf.Tag)
|
||||
} else if opts.SupportJSONTags && fieldTag == (tag{}) {
|
||||
fieldTag.parseStructTag("json", sf.Tag)
|
||||
}
|
||||
|
||||
if fieldTag.Ignore {
|
||||
|
||||
Reference in New Issue
Block a user