ci: adds Go 1.19.0-rc.2 into matrix (#714)
This adds the 1.19.0-rc2. in the testing matrix. This also formats the Godocs across the codebase, as Go 1.19 has started auto-formatting Godoc. https://github.com/tetratelabs/wazero/issues/426 Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
3
examples/allocation/tinygo/testdata/greet.go
vendored
3
examples/allocation/tinygo/testdata/greet.go
vendored
@@ -24,6 +24,7 @@ func log(message string) {
|
||||
// byteCount) to the console.
|
||||
//
|
||||
// Note: In TinyGo "//export" on a func is actually an import!
|
||||
//
|
||||
//go:wasm-module env
|
||||
//export log
|
||||
func _log(ptr uint32, size uint32)
|
||||
@@ -35,6 +36,7 @@ func greeting(name string) string {
|
||||
|
||||
// _greet is a WebAssembly export that accepts a string pointer (linear memory
|
||||
// offset) and calls greet.
|
||||
//
|
||||
//export greet
|
||||
func _greet(ptr, size uint32) {
|
||||
name := ptrToString(ptr, size)
|
||||
@@ -46,6 +48,7 @@ func _greet(ptr, size uint32) {
|
||||
//
|
||||
// Note: This uses a uint64 instead of two result values for compatibility with
|
||||
// WebAssembly 1.0.
|
||||
//
|
||||
//export greeting
|
||||
func _greeting(ptr, size uint32) (ptrSize uint64) {
|
||||
name := ptrToString(ptr, size)
|
||||
|
||||
Reference in New Issue
Block a user