()
| 25 | ) |
| 26 | |
| 27 | func newCtx() context.Context { |
| 28 | ctx := context.Background() |
| 29 | ctx = log.PutClock(ctx, log.NoClock) |
| 30 | ctx = log.PutHandler(ctx, log.Normal.Handler(log.Stdout())) |
| 31 | ctx = log.Enter(ctx, "Example") |
| 32 | return ctx |
| 33 | } |
| 34 | |
| 35 | // This example shows how to run a command, wait for it to complete and check if it succeeded. |
| 36 | func ExampleSilent() { |
no test coverage detected