소스 검색

go: add named executable example (#1506)

Max Strübing 7 년 전
부모
커밋
0639876c42
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      pages/common/go.md

+ 4 - 0
pages/common/go.md

@@ -10,6 +10,10 @@
 
 `go run {{file}}.go`
 
+- Compile a source file into a named executable:
+
+`go build -o {{executable}} {{file}}.go`
+
 - Compile the package present in the current directory:
 
 `go build`