/
githubmirror
/
goose
Обзор
Документация
Войти
/
githubmirror
/
goose
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
internal/testing/testdb/options.go
16 строк
271 B
Michael Fridman
Update integration test suite (formally e2e) (#713)
14 мар 2024, 16:35
Не верифицирован
14 мар 2024, 16:35
b2c483a
Код
Авторство
О чём код?
package testdb type options struct { bindPort int debug bool } type OptionsFunc func(o *options) func WithBindPort(n int) OptionsFunc { return func(o *options) { o.bindPort = n } } func WithDebug(b bool) OptionsFunc { return func(o *options) { o.debug = b } }