The document lists and describes various commands that can be used with the Go programming language. It outlines commands for running tests and building packages, as well as commands for cleaning, formatting code, and managing dependencies. Key commands include "go run" to compile and run Go programs, "go test" for testing packages, "go build" to compile packages and dependencies, and "go install" to compile and install packages and dependencies.
The document lists and describes various commands that can be used with the Go programming language. It outlines commands for running tests and building packages, as well as commands for cleaning, formatting code, and managing dependencies. Key commands include "go run" to compile and run Go programs, "go test" for testing packages, "go build" to compile packages and dependencies, and "go install" to compile and install packages and dependencies.
The document lists and describes various commands that can be used with the Go programming language. It outlines commands for running tests and building packages, as well as commands for cleaning, formatting code, and managing dependencies. Key commands include "go run" to compile and run Go programs, "go test" for testing packages, "go build" to compile packages and dependencies, and "go install" to compile and install packages and dependencies.
Build : kompilasi paket dan dependensi Clean : hapus berkas hasil build dan cache Doc : tampilkan dokumentasi dari paket atau simbol Env : cetak informasi lingkungan dari Go Fix : ubah paket untuk menggunakan API yang baru Fmt : gofmt (format ulang) sumber paket Generate : buat berkas Go dengan memproses sumber Get : tambah dan pasang dependensi ke modul yang sekarang Install : kompilasi dan pasang paket dan dependensi List : cetak daftar paket atau modul Mod : pemeliharaan modul Run : kompilasi dan jalankan program Go Test : tes paket Tool : jalankan perkakas go tertentu Version : cetak versi Go Vet : laporkan kemungkinan kesalahan dalam paket 2.
3.
4.
- go run : kompilasi dan jalankan program Go
- go test : tes paket - go build : kompilasi paket dan dependensi - go install : kompilasi dan pasang paket dan dependensi