Skip to content

Commit 969b0da

Browse files
committed
Delete aws, remove reference
1 parent cd99b8e commit 969b0da

File tree

12 files changed

+4
-993
lines changed

12 files changed

+4
-993
lines changed

config/config.go

Lines changed: 0 additions & 366 deletions
This file was deleted.

convert/convert.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ func Clone(origin interface{}) interface{} {
193193
return result.Interface()
194194
}
195195
func ToMap(in interface{}, ignoreFields ...string) map[string]interface{} {
196+
return ToMapWithTag(in, "json", ignoreFields...)
197+
}
198+
func ToMapWithTag(in interface{}, tagName string, ignoreFields ...string) map[string]interface{} {
196199
out := make(map[string]interface{})
197200
v := reflect.ValueOf(in)
198201
if v.Kind() == reflect.Ptr {
@@ -214,7 +217,7 @@ func ToMap(in interface{}, ignoreFields ...string) map[string]interface{} {
214217
continue
215218
}
216219
}
217-
n := getTag(typ.Field(i), "json")
220+
n := getTag(typ.Field(i), tagName)
218221
out[n] = fv
219222
}
220223
for _, v := range ignoreFields {

dynamodb/field_loader.go

Lines changed: 0 additions & 73 deletions
This file was deleted.

health/dynamodb/health_checker.go

Lines changed: 0 additions & 71 deletions
This file was deleted.

health/elasticsearch/health_checker.go

Lines changed: 0 additions & 45 deletions
This file was deleted.

health/elasticsearch/v7/health_checker.go

Lines changed: 0 additions & 46 deletions
This file was deleted.

health/mongo/health_checker.go

Lines changed: 0 additions & 70 deletions
This file was deleted.

health/mongo/server_info_checker.go

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)