preview image
Posted by June 28 2023 / Go tutorial / 编程技术
Getting Started With Multi Module Workspaces
Updated on April 20 2024
152 words
1 minutes read

... visits

This tutorial introduces the basics of multi-module workspaces in Go. With multi-module workspaces, you can tell the Go command that you’re writing code in multiple modules at the same time and easily build and run code in those modules.

In this tutorial, you’ll create two modules in a shared multi-module workspace, make changes across those modules, and see the results of those changes in a build.

Note: For other tutorials, see Tutorials .

Prerequisites

  • An installation of Go 1.18 or later.
  • A tool to edit your code. Any text editor you have will work fine.
  • A command terminal. Go works well using any terminal on Linux and Mac, and on PowerShell or cmd in Windows.

This tutorial requires go1.18 or later. Make sure you’ve installed Go at Go 1.18 or later using the links at go.dev/dl .

comments powered by Disqus
TAGS
On this page