agola/internal/util
Simone Gotti d2b09d854f *: use new errors handling library
Implement a new error handling library based on pkg/errors. It provides
stack saving on wrapping and exports some function to add stack saving
also to external errors.
It also implements custom zerolog error formatting without adding too
much verbosity by just printing the chain error file:line without a full
stack trace of every error.

* Add a --detailed-errors options to print error with they full chain
* Wrap all error returns. Use errors.WithStack to wrap without adding a
  new messsage and error.Wrap[f] to add a message.
* Add golangci-lint wrapcheck to check that external packages errors are
  wrapped. This won't check that internal packages error are wrapped.
  But we want also to ensure this case so we'll have to find something
  else to check also these.
2022-02-28 12:49:13 +01:00
..
backoff.go *: use new errors handling library 2022-02-28 12:49:13 +01:00
buffer.go *: use new errors handling library 2022-02-28 12:49:13 +01:00
dump.go *: use zerolog for logging 2022-02-28 10:40:55 +01:00
errors.go *: use new errors handling library 2022-02-28 12:49:13 +01:00
git.go *: use new errors handling library 2022-02-28 12:49:13 +01:00
goroutine.go util: add GoWait function 2019-07-26 10:55:04 +02:00
http.go *: use new errors handling library 2022-02-28 12:49:13 +01:00
password.go *: use new errors handling library 2022-02-28 12:49:13 +01:00
path.go util: Fix PathList output when path ends with slashes 2019-09-09 14:49:00 +02:00
path_test.go util: Fix PathList output when path ends with slashes 2019-09-09 14:49:00 +02:00
pointer.go util: add pointer utils 2019-04-24 16:31:14 +02:00
sha.go internal: fix linter errors 2019-07-02 16:20:53 +02:00
slice.go internal: fix linter errors 2019-07-02 16:20:53 +02:00
slice_test.go Add slice utils 2019-02-21 16:32:27 +01:00
ssh.go *: use new errors handling library 2022-02-28 12:49:13 +01:00
string.go *: use new errors handling library 2022-02-28 12:49:13 +01:00
tls.go *: use new errors handling library 2022-02-28 12:49:13 +01:00
uuid.go go.mod: replace https://github.com/satori/go.uuid 2022-02-21 09:43:32 +01:00
validation.go *: use new errors handling library 2022-02-28 12:49:13 +01:00
validation_test.go validation: make uuid like names not valid 2019-05-02 23:40:28 +02:00