1set/starlet

View on GitHub
dataconv/helper.go

Summary

Maintainability
A
45 mins
Test Coverage

Function TypeConvert has 7 return statements (exceeds 4 allowed).
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} {
Severity: Major
Found in dataconv/helper.go - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status