GO Programming | 1.18 Workspaces with Examples



GO Programming | 1.18 Workspaces with Examples

GO Programming | 1.18 Workspaces with Examples

This is a tutorial about workspaces, i.e. the go.work file, in GO / Golang. The feature was added in GO 1.18 and is very useful if you want to use a local module.

Although beeing very inconvinient, in large projects, you may find replace statements inside the go.mod file pretty frequently. With GO workspaces / the go.work file you don’t have to add replace statements to your go.mod file anymore.

GO workspaces are pretty convient for local development, too. E.g. if you cloned a github repo and want to alter it or play around with it.

content of the video:
0:00 – Intro
0:10 – go work init
0:58 – go work use

The voice is generated with AI.