tldr/pages.tr/common/go-get.md

17 lines
487 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# go get
> Bir bağımlılık paketi ekle veya eski GOPATH modunda paket indir.
> Daha fazla bilgi için: <https://pkg.go.dev/cmd/go#hdr-Add_dependencies_to_current_module_and_install_them>.
- `go.mod`'a modül modunda (module-mode) belirtilen bir paket ekle veya paketi GOPATH modunda indir:
`go get {{ornek.com/pkg}}`
- Paketi module-aware modunda belirtilen sürümde düzenle:
`go get {{ornek.com/pkg}}@{{v1.2.3}}`
- Belirtilen paketi sil:
`go get {{ornek.com/pkg}}@{{none}}`