Go cli: Difference between revisions

From bibbleWiki
Jump to navigation Jump to search
Line 7: Line 7:
</syntaxhighlight>
</syntaxhighlight>
We can go to https://golang.org/cmd/go/ for online
We can go to https://golang.org/cmd/go/ for online
=Building and Running=
==Run==
Compiles and run a program without leaving artefacts.
<syntaxhighlight lang="bash">
go run src/cmds/hello/hello.go
</syntaxhighlight>

Revision as of 01:48, 30 January 2021

Introduction

This is just a page on go command options

go help <command>
// e.g.
go help test

We can go to https://golang.org/cmd/go/ for online

Building and Running

Run

Compiles and run a program without leaving artefacts.

go run src/cmds/hello/hello.go