I'm new to Golang. I have multiple apps residing in the same folder in a mono repository.
apps
app1
go.mod
go.sum
main.go
app2
go.mod
go.sum
main.go
app3
go.mod
go.sum
main.go
There is also a go.work
file in root directory that wraps these apps in a use
block. The apps are AWS Lambda functions that are deployed independently.
How can I create a shared library that can be used by each app? I have some code that should be made reusable or else I'll end up copy-pasting everything. I've tried adding a shared.go
file under apps
with no luck.