github.com/blend/go-sdk@v1.20240719.1/assert/option.go (about) 1 /* 2 3 Copyright (c) 2024 - Present. Blend Labs, Inc. All rights reserved 4 Use of this source code is governed by a MIT license that can be found in the LICENSE file. 5 6 */ 7 8 package assert 9 10 import "io" 11 12 // Option mutates assertions. 13 type Option func(*Assertions) 14 15 // OptOutput sets the output for assertions. 16 func OptOutput(wr io.Writer) Option { 17 return func(a *Assertions) { 18 a.Output = wr 19 } 20 }