diff --git a/examples/webassembly-linear-memory/demo/go/main.go b/examples/webassembly-linear-memory/demo/go/main.go index 1b6b175..1ec1ec8 100644 --- a/examples/webassembly-linear-memory/demo/go/main.go +++ b/examples/webassembly-linear-memory/demo/go/main.go @@ -17,14 +17,14 @@ func getWasmMemoryBufferPointer() *[BUFFER_SIZE]uint8 { // Function to store the passed value at index 0, // in our buffer -//go:export storeValueInWasmMemoryBufferIndexZero +//export storeValueInWasmMemoryBufferIndexZero func storeValueInWasmMemoryBufferIndexZero(value uint8) { buffer[0] = value } // Function to read from index 1 of our buffer // And return the value at the index -//go:export readWasmMemoryBufferAndReturnIndexOne +//export readWasmMemoryBufferAndReturnIndexOne func readWasmMemoryBufferAndReturnIndexOne() uint8 { return buffer[1] } diff --git a/examples/webassembly-linear-memory/webassembly-linear-memory.go.en-us.md b/examples/webassembly-linear-memory/webassembly-linear-memory.go.en-us.md index 20572ad..87ffb08 100644 --- a/examples/webassembly-linear-memory/webassembly-linear-memory.go.en-us.md +++ b/examples/webassembly-linear-memory/webassembly-linear-memory.go.en-us.md @@ -34,14 +34,14 @@ func getWasmMemoryBufferPointer() *[BUFFER_SIZE]uint8 { // Function to store the passed value at index 0, // in our buffer -//go:export storeValueInWasmMemoryBufferIndexZero +//export storeValueInWasmMemoryBufferIndexZero func storeValueInWasmMemoryBufferIndexZero(value uint8) { buffer[0] = value } // Function to read from index 1 of our buffer // And return the value at the index -//go:export readWasmMemoryBufferAndReturnIndexOne +//export readWasmMemoryBufferAndReturnIndexOne func readWasmMemoryBufferAndReturnIndexOne() uint8 { return buffer[1] }