Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Then in package b

Code Block
languagego
package b
import "a"
type b struct{}
// implements the bapi.B interface.
func (x b) Bar() { a.Foo(x) }
func Bar() { var x b; x.Bar() }

And sub-directory bapi

Code Block
languagego
package bapi

type B interface {
   Bar()
}

...