openfaas / templates

OpenFaaS Classic templates
https://www.openfaas.com
MIT License
276 stars 228 forks source link

feat: upgrade to go 1.18 and support modules via workspaces #288

Closed LucasRoesler closed 2 years ago

LucasRoesler commented 2 years ago

Description

Support Go 1.18 and improve module support using Workspaces

Motivation and Context

Which issue(s) this PR fixes

Fixes #

How Has This Been Tested?

See https://github.com/LucasRoesler/openfaas-golang-template-workspace

Types of changes

Impact to existing users

Checklist:

alexellis commented 2 years ago

Examples that come to my mind:

LucasRoesler commented 2 years ago

@alexellis i remove the go env statement and i have updated the readme here https://github.com/LucasRoesler/openfaas-golang-template-workspace which explains the supported modes, please make sure to review that before we merge.

alexellis commented 2 years ago

I took a look at the examples repo, the only thing that would make them better is dropping a CI build into the repo to validate them automatically.

I have an example you could adapt in this blog post