dataconv/helper.go
Function TypeConvert
has 7 return statements (exceeds 4 allowed). Open
Open
func TypeConvert(data interface{}) interface{} {
switch v := data.(type) {
case string:
// Attempt parsing in different formats
for _, format := range []string{time.RFC3339, time.RFC3339Nano, time.RFC822, time.RFC1123} {