Skip to main content

Add Go-related path into your Visual Studio Code in Ubuntu 18.04

I started learning Golang and having difficulties in configuration as there is no simple way to find where the hell is "howto config" guide.

Frustratingly googling didn't give good result until I found this blog in Chinese:
https://colobu.com/2016/04/21/use-vscode-to-develop-go-programs/

Kudos to you for writing it in a beginner friendly way!

In short:


  1. File -> Preferences -> User Setttings.
  2. In the search bar, just type "go" and it will list some suggested result.
  3. You will probably find like in this snapshot


  4. Click on "Edit in settings.json". It will open a new tab of "settings.json"
  5. Now go to your terminal and type run command "go env", press enter. You will get result similar to this: 

  6. Find relevant path needed such as GOPATH and GOROOT and add to "settings.json like this: 
  7. The naming convention for go setting are as the snapshot above. It use "go." and following with whatever needed for configuration. By right after typing "go", it should auto-list some recommendation that you can scroll and find what you need as in snapshot below.

My english probably shit, but you'll get it what my problem is.
If it is helpful, then I am glad.
If not then I am sorry, hopefully you will find the solution you probably need.

Comments

Popular posts from this blog

Memilih Kamera Pertama Anda. Bahagian 2 Tambahan - Kamera Point and Shoot

Edisi Khas untuk kamera Point and Shoot. Penulis merasakan kamera jenis ini tidak mendapat perhatian yang baik dengan ciri yang kompak, ringan dan mudah dibawa. Kebanyakan keluaran lewat 2015 mempunyai spesifikasi yang bagus, setara dengan DSLR dan Mirrorless. Contoh Kamera Point and Shoot keluaran Sony yang terkini bernama Sony ZV-1 Saiz Sensor - Kebanyakan kamera sebegini sensor sebesar 1 inci sehingga APS-C.  Megapixel - Normalnya bermula 12 MP sehingga 26 MP. Hasil gambar juga baik, cuma kekurangan fungsi Penstabil (Stabiliser) menyebabkan kualiti gambar adalah bergantung kepada tetapan (setting) yang betul serta tangan pengambil gambar yang teguh. Saiz Kamera - Kerana saiz yang kompak, ia senang dibawa kemana-mana sahaja, tanpa memakan ruang pada beg mahupun poket. Saiz kecil juga nampak natural, tidak seakan menceroboh momen dengan saiz yang besar, membuatkan orang berasa tidak senang duduk. Versatil - Mempunyai kebolehan merakam video, jadi

ARP for Dummy like Me!

ARP used to map IP address to MAC address on data link layer. It mainly used when Host is connected over Ethernet. In long explanation, This protocol used to locate address of a Host (Physical/Virtual) in network.  The address is searched or "resolved" by sending an "information" to a server (other host).  The server after received the information will then identify itself and respond back with the network information.  The responded information contain the required address.  This always happen over Ethernet. Ethernet address dependent to the hardware which is Network Interface card. So, during ARP request, it try to ask which IP associated with which MAC address. If you have used wireshark, maybe you can remember on Info section, there are always message saying "Who has $IP". For example:  Situation where ARP is used. Someone with IP X.X.X.X try ping $IP = Y.Y.Y.Y. We assume, the source PC did not have the IP information from the Targe

Memilih Kamera Pertama Anda. Bahagian 3 - Lensa Kamera

“Apa yang dapat dilihat dimata tak semestinya akan sama seperti di dalam kamera” Lensa adalah komponen penting selepas kamera untuk memulakan hobi mengambil gambar. Umum tanggapan awal berkenaan kamera sebagai satu benda, kecuali kamera point and shoot, tanggapan ini tidak boleh dipakai pada kamera jenis DSLR dan Mirrorless. Bagi yang biasa melayari internet mencari kamera terpakai, kerap dapat kita lihat ada yang hanya menjual badan kamera (kamera body) sahaja, dan ada yang jual lensa sahaja. Jika ada menjumpai satu set kamera dan lensa, melainkan ia model yang sedikit lama, harganya sedikit mahal. Kali ini penulis akan berkongsi kriteria asas bagi lensa untuk pengguna baru dapat faham dan memilih lensa pertama mereka. Prime lens(Fixed) atau Zoom lens - Ini bergantung kepada apakah tujuan ingin mengambil gambar.  Bagi yang kasual, lensa Zoom kerap menjadi pilihan kerana versatiil. Bergantung kepada situasi dan jarak subjek, lensa zoom boleh dilaraskan segera. Walaubagaim