At the moment, we use a variable to assign the func based on some logic. Explore and use an interface instead. Code in question: https://github.com/Kong/go-database-reconciler/blob/main/pkg/dump/dump.go#L139 Discovered from: https://github.com/Kong/go-database-reconciler/pull/228#issuecomment-2753914716