This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Description
If someone wants to "override" a set of providers from a larger set, it would be helpful to have the gowire tool output the minimal code to create a new provider set that "carves out" the given provider from the set. Ideal workflow:
$ gowire subtract github.com/google/go-cloud/gcp/gcpcloud.GCP github.com/google/go-cloud/gcp.ProjectID
import (
"github.com/google/go-cloud/gcp"
"github.com/google/go-cloud/gcp/gcpcloud"
"github.com/google/go-cloud/wire"
)
var Set = wire.NewSet(
gcpcloud.Services,
gcp.CredentialsTokenSource,
gcp.DefaultCredentials,
)
Perhaps this would include an interactive mode that shows you everything in the provider set and lets you pick which types to remove by menu, since typing type names is arduous.