mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-18 16:01:11 +00:00
Update cheatsheets
This commit is contained in:
17
go-run
Normal file
17
go-run
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# go run
|
||||
|
||||
> Compile and run Go code without saving a binary.
|
||||
> More information: <https://pkg.go.dev/cmd/go#hdr-Compile_and_run_Go_program>.
|
||||
|
||||
- Run a Go file:
|
||||
|
||||
`go run {{path/to/file.go}}`
|
||||
|
||||
- Run a main Go package:
|
||||
|
||||
`go run {{path/to/package}}`
|
||||
Reference in New Issue
Block a user