mirror of
https://github.com/pressly/goose.git
synced 2025-05-02 21:50:54 +00:00
17 lines
271 B
Go
17 lines
271 B
Go
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 }
|
|
}
|