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

The 7 Deadly Diseases by Dr. William Edward Deming.

 Good advice to follow when it come to product development. I found this here: https://old.reddit.com/r/BuyItForLife/comments/lx0fyn/i_asked_an_automotive_engineer_whats_the_secret/ The diseases are: Lack of constancy of purpose : You must remain focused on doing the right things because they are the right things to do for your customer and to achieve quality. ITSM is not a fad it is a way of behaving. Emphasis on short-term profits : Cutting costs can bring short-term profits and are easy to achieve. But cutting costs can only go on for so long, before you have cut to the bone and have nothing left to cut. Evaluation by performance, merit rating, or annual review of performance : Management by objectives ends up focusing on the objectives and not on the management. It is about “hitting the numbers” and not improvement. Mobility of management : When management changes jobs constantly there is no continuity or constancy of purpose. Each time a new leader comes in, the efforts of quality

Training that I intend to attend and complete by 2020

 #Update: I failed to attend all because depression during lockdown. Will slowly try to do one in 2021.    As mentioned, I want to do these: https://www.chiheb-chebbi.com/incident-response-and-security-operations-fundamentals/ https://www.enisa.europa.eu/topics/trainings-for-cybersecurity-specialists/online-training-material/technical-operational#mobile_threats https://www.enisa.europa.eu/topics/trainings-for-cybersecurity-specialists/online-training-material/technical-operational#mobile2   This is my checklist, we'll see if I can do it. Finger-crossed.

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