Documentation
¶
Index ¶
Examples ¶
Constants ¶
View Source
const ( //ArgumentPrefix argument name prefix ArgumentPrefix = "arg" //ReturnPrefix return name prefix ReturnPrefix = "ret" Header = `// GENERATED CODE // -------------- // please do not edit manually instead use the "zbusc" to regenerate ` )
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
Generate generates stubs for given interface
Example ¶
type Test interface {
Hello(name string) string
Add(a, b float64) string
Divide(a, b float64) (float64, error)
}
var inf = (*Test)(nil)
err := Generate(Options{Module: "example", Name: "test", Package: "stubs", Version: "1.0"}, inf)
if err != nil {
panic(err)
}
Types ¶
Click to show internal directories.
Click to hide internal directories.