2028b6d9ee
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> |
||
---|---|---|
.. | ||
README.md | ||
go.mod | ||
go.sum | ||
main.go | ||
spin.toml |
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