Go

Go

Made by DeepSource

Function returns too many results GO-C4008

Style
Minor

It is recommended to use a struct when a function returns too many results.

Bad practice

func foo() (int, string, bool, int, error)

Recommended

type fooResult struct {
    a int
    b string
    c bool
    d int
}

func foo() (fooResult, error)