pulumi/sdk/go/common/util
Fraser Waters 09b7aa9186
Add String and GoString to Result (#8490)
I got fed up of assert errors in tests that looked like:
```
Expected nil, but got: &result.simpleResult{err:(*errors.fundamental)(0xc0002fa5d0)}
```

It was very hard to work out at a glance what had gone wrong and I kept
having to hook a debugger just to look at what the error was.

With GoString these now print something like:
```
Expected nil, but got: &simpleResult{err: Unexpected diag message: <{%reset%}>resource violates plan: properties changed: -zed, -baz, -foo<{%reset%}>
}
```

Which is much more useful.
2021-11-24 17:01:55 +00:00
..
archive [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
buildutil [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
ciutil Added a buildkite detector for detecting the correct env vars in CI (#7933) 2021-11-15 09:10:07 -08:00
cmdutil Fix cmdutil.PrintTable to handle ansi escapes and non-byte glyphs (#8344) 2021-11-04 10:06:20 +00:00
contract [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
deepcopy Protect against engine event mutation. (#5003) 2020-07-16 23:52:31 -07:00
executable Skip failing test on windows 2021-08-30 22:53:16 -07:00
fsutil [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
gitutil [cli] check main after master (#8463) 2021-11-19 13:49:59 -08:00
goversion Fix test 2020-11-12 09:20:33 -08:00
httputil [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
logging Removing the need for vendoring (#4167) 2020-03-25 15:57:46 -07:00
mapper [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
result Add String and GoString to Result (#8490) 2021-11-24 17:01:55 +00:00
retry move pkg/util/retry -> sdk/go/common/util/retry 2020-03-18 15:47:01 -07:00
rpcutil Add a convert-trace command. (#7319) 2021-06-17 14:46:05 -07:00