Logo
Explore Help
Register Sign In
code/avo
1
0
Fork 0
You've already forked avo
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
36e917b76871ff580f5ba8056dc3c54bcd7eaaec
avo/examples/ext/stub.go

8 lines
206 B
Go
Raw Normal View History

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
2019-01-22 22:35:01 -08:00
// Package ext demonstrates how to interact with external types.
package ext
update
2026-03-06 20:14:02 +00:00
import "sources.truenas.cloud/code/avo/examples/ext/ext"
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
2019-01-22 22:35:01 -08:00
// StructFieldB returns field B.
func StructFieldB(e ext.Struct) byte
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 250ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API