gotypes,build: add Implement (#58)
By using Implement you can provide a definition of a function, taking the signature from a stub in the package. One major benefit of this approach is it makes it easy to handle external types in the function signature. Updates #55
This commit is contained in:
committed by
GitHub
parent
9c913ee847
commit
eb225e9d2c
9
examples/ext/ext/ext.go
Normal file
9
examples/ext/ext/ext.go
Normal file
@@ -0,0 +1,9 @@
|
||||
// Package ext is used as a target package in the external types example.
|
||||
package ext
|
||||
|
||||
// Struct is the target type in the external types example.
|
||||
type Struct struct {
|
||||
A [3]uint16
|
||||
B byte
|
||||
C string
|
||||
}
|
||||
Reference in New Issue
Block a user