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
a143e7d1a2bc2ee688c6dd4462b6d7d4be7348c8
avo/examples/ext/asm.go

16 lines
276 B
Go
Raw Normal View History

all: go 1.17 (#197) Bump CI Go versions to 1.16 and 1.17. Update build tags with `go:build` equivalents. Upgrade asmfmt tool for new `go:build` support. Updates #183
2021-10-29 01:18:34 -07:00
//go:build ignore
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
// +build ignore
package main
all: apply gofumpt (#79) Apply @mvdan's opinionated gofumpt formatter across the codebase.
2019-04-13 22:53:13 -05:00
import . "github.com/mmcloughlin/avo/build"
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
func main() {
Package("github.com/mmcloughlin/avo/examples/ext")
Implement("StructFieldB")
b := Load(Param("e").Field("B"), GP8())
Store(b, ReturnIndex(0))
RET()
Generate()
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 125ms Template: 7ms
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