openfaas / golang-http-template

Golang templates for OpenFaaS using HTTP extensions
https://www.openfaas.com/
MIT License
106 stars 57 forks source link

feat: upgrade to go 1.18 and use workspaces to manage the handler #70

Closed LucasRoesler closed 2 years ago

LucasRoesler commented 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.

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 example go-http function that publishes messages to a NATS subject. This function demonstrates using

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have: