check isn't necessary
Vladimir Bauer
3 years ago
| 82 | 82 |
|
| 83 | 83 |
// WithDebugOutput sets debug output.
|
| 84 | 84 |
func WithDebugOutput(w io.Writer) ContainerOption {
|
| 85 | |
if w == nil {
|
| 86 | |
return nil
|
| 87 | |
}
|
| 88 | 85 |
return func(s *pState) {
|
| 89 | 86 |
s.debugOut = w
|
| 90 | 87 |
}
|