Go Tool

From NovaOrdis Knowledge Base
Revision as of 01:22, 15 August 2023 by Ovidiu (talk | contribs) (→‎build)
Jump to navigation Jump to search

Internal

Overview

Commands

build

Compiles and builds an executable.

cd ${PROJECT_DIR}
go build ./src/main/main.go

The command will create an executable named main and place it in the ${PROJECT_DIR} directory.

run

cd $PROJECT_DIR
go run ./src/main/main.go