utils/utils.go
Function Stringify
has 6 return statements (exceeds 4 allowed). Open
Open
func Stringify(object interface{}) string {
if obj, ok := object.(interface {
Stringify() string
}); ok {
return obj.Stringify()
Function SortFormKeys
has 5 return statements (exceeds 4 allowed). Open
Open
func SortFormKeys(strs []string) {
sort.Slice(strs, func(i, j int) bool { // true for first
str1 := strs[i]
str2 := strs[j]
matched1 := replaceIdxRegexp.FindAllStringIndex(str1, -1)
Your code does not pass gofmt in 5 places. Go fmt your code! Open
Open
package utils
- Exclude checks