spin/examples/tinygo-outbound-redis
Radu Matei 2028b6d9ee
fix: Go SDK integration tests
This commit updates the integration test build step to run `go mod
tidy`, since the Go SDK pulls in an external Go module for the router.

This commit also ignores `go.sum` for the Go examples from the
`examples/` directory.

Signed-off-by: Radu Matei <radu.matei@fermyon.com>
Co-authored-by: Rajat Jindal <rajat.jindal@fermyon.com>
2023-04-05 15:08:05 +03:00
..
README.md fix: Go SDK integration tests 2023-04-05 15:08:05 +03:00
go.mod fix: Go SDK integration tests 2023-04-05 15:08:05 +03:00
go.sum fix: Go SDK integration tests 2023-04-05 15:08:05 +03:00
main.go grand Go SDK update (#1165) 2023-02-16 15:40:08 -07:00
spin.toml chore: update examples and templates to spin_manifest_version 2023-03-08 12:06:03 -05:00

README.md

Spin component in TinyGo

$ go mod tidy
$ RUST_LOG=spin=trace spin build --up

The application can now receive requests on http://localhost:3000/publish:

$ curl -i localhost:3000/publish
HTTP/1.1 200 OK
content-length: 67
date: Tue, 29 Nov 2022 07:03:52 GMT

mykey value was: myvalue
spin-go-incr value: 1
deleted keys num: 2