Closed LucasRoesler closed 2 years ago
Replace the custom bash script with a Go workspace, to handle setting the correct imports and replacements during the Go builds. This is simpler and uses official Go tooling.
I have started a repo of test functions here: https://github.com/LucasRoesler/golang-http-template-examples
The first example publisher is an example go-http function that publishes messages to a NATS subject. This function demonstrates using
publisher
go-http
github.com/nats-io/nats.go
github.com/openfaas/templates-sdk/go-http
pkg/version
I have:
git commit -s
Replace the custom bash script with a Go workspace, to handle setting the correct imports and replacements during the Go builds. This is simpler and uses official Go tooling.
How Has This Been Tested?
I have started a repo of test functions here: https://github.com/LucasRoesler/golang-http-template-examples
The first example
publisher
is an examplego-http
function that publishes messages to a NATS subject. This function demonstrates usinggithub.com/nats-io/nats.go
andgithub.com/openfaas/templates-sdk/go-http
pkg/version
How are existing users impacted? What migration steps/scripts do we need?
Checklist:
I have:
git commit -s