Checker.Check() should return error, not (bool, string); would match Go idioms better
Bug #1123659 reported by
Tv
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gocheck |
New
|
Undecided
|
Unassigned |
Bug Description
Right now, I need to do a lot of
..., err := something()
if err != nil {
return false, err.Error()
}
return true, ""
That is ugly for several reasons, including needing the empty string. Gocheck seems to be from an era where os.Error still existed (http://
To post a comment you must log in.