go-siris / siris

DEPRECATED: The community driven fork of Iris. The fastest web framework for Golang!
Other
142 stars 16 forks source link

Build failure due to recent changes to satori/go.uuid project #75

Open AndreiPiakhota opened 6 years ago

AndreiPiakhota commented 6 years ago

I'm submitting a bug report. SHOWSTOPPER

Build failure when trying to build my project which has go-siris as dependency.

vendor\github.com\go-siris\siris\core\errors\errors.go:35:22: multiple-value uuid.NewV4() in single-value context The failure is caused by recent updates to satori/go.uuid project .

func NewV4() (UUID, error) {
    return global.NewV4()
} 

So now this function returns multiple values and this becomes inconsistent with current implementation in errors.go file of go-siris project

func New(errMsg string) Error {
    return Error{
        ID:      uuid.NewV4().String(),
        Message: Prefix + errMsg,
    }
}

Could you, please, fix it. It seems easy fix.