Vendor main dependencies.
This commit is contained in:
parent
49a09ab7dd
commit
dd5e3fba01
2738 changed files with 1045689 additions and 0 deletions
12
vendor/github.com/mesosphere/mesos-dns/errorutil/errorutil.go
generated
vendored
Normal file
12
vendor/github.com/mesosphere/mesos-dns/errorutil/errorutil.go
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
package errorutil
|
||||
|
||||
// ErrorFunction A function definition that returns an error
|
||||
// to be passed to the Ignore or Panic error handler
|
||||
type ErrorFunction func() error
|
||||
|
||||
// Ignore Calls an ErrorFunction, and ignores the result.
|
||||
// This allows us to be more explicit when there is no error
|
||||
// handling to be done, for example in defers
|
||||
func Ignore(f ErrorFunction) {
|
||||
_ = f()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue