Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TomOnTime/2cfa67e302082c333bee7e552b46907d to your computer and use it in GitHub Desktop.
Save TomOnTime/2cfa67e302082c333bee7e552b46907d to your computer and use it in GitHub Desktop.
The error I get is:
cannot use New (type func() (*gitHandle, error)) as type vcs.RegistrarInitializer in argument to vcs.Register
The signature of New is:
type gitHandle struct {
}
func New() (*gitHandle, error) {
The definition of vcs.RegistrarInitializer is:
type RegistrarInitializer func() (*Vcs, error)
And Vcs is:
type Vcs interface {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment