Files
tldr/pages.tr/common/go-build.md
Sebastiaan Speck 10896a0a0b pages*: fix tldr-lint issues (#11288)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
2023-10-26 19:31:26 +02:00

21 lines
639 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# go build
> Go kaynaklarını derle.
> Daha fazla bilgi için: <https://golang.org/cmd/go/#hdr-Compile_packages_and_dependencies>.
- Bir 'package main' dosyasını derle (çıktı uzantısız bir dosya ismi olacak):
`go build {{örnek/konum/main.go}}`
- Çıktı dosya ismini belirterek derle:
`go build -o {{örnek/konum/binary}} {{örnek/konum/kaynak.go}}`
- Bir paket yarat:
`go build -o {{örnek/konum/binary}} {{örnek/konum/paket}}`
- Bir ana paketi veri yarış tanımlayıcısını etkinleştirerek çalıştırılabilir olarak derle:
`go build -race -o {{örnek/konum/çalıştırılabilir}} {{örnek/konum/ana_paket}}`