# Want to learn go language, need advice

**URL:** <https://forum.rclone.org/t/want-to-learn-go-language-need-advice/12145>\
**Category:** Help and Support\
**Created:** [October 4, 2019, 12:56am UTC](https://forum.rclone.org/t/want-to-learn-go-language-need-advice/12145 "2019-10-04T00:56:34Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [October 4, 2019, 12:56am UTC](https://forum.rclone.org/t/want-to-learn-go-language-need-advice/12145/1 "2019-10-04T00:56:34Z")

</div>

i want to learn more about go.

1. what IDE do you use to write and debug go code for rclone?  
for python i use pycharm from jetbrain. i noticed that they make a IDE for go.

thanks,

---

<div class="post-metadata">

**Author:** ![thestigma](https://forum.rclone.org/user_avatar/forum.rclone.org/thestigma/32/3414_2.png) [@thestigma](https://forum.rclone.org/u/thestigma)\
**Post date:** [October 4, 2019, 1:23am UTC](https://forum.rclone.org/t/want-to-learn-go-language-need-advice/12145/2 "2019-10-04T01:23:02Z")

</div>

Could be relevant for me too down the line. Some suggestions on what the best tools to get started with would be nice to have for then 🙂

---

<div class="post-metadata">

**Author:** ![seuffert](https://forum.rclone.org/user_avatar/forum.rclone.org/seuffert/32/66_2.png) [@seuffert](https://forum.rclone.org/u/seuffert)\
**Post date:** [October 4, 2019, 8:17am UTC](https://forum.rclone.org/t/want-to-learn-go-language-need-advice/12145/3 "2019-10-04T08:17:02Z")

</div>

i am using Visual Studio Code with golang extensions

> **[Go with Visual Studio Code](https://code.visualstudio.com/docs/languages/go)**
>
> Learn about Visual Studio Code editor features (code completion, debugging, snippets, linting) for Go.

pretty happy with this, linux & windows

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [October 4, 2019, 9:29am UTC](https://forum.rclone.org/t/want-to-learn-go-language-need-advice/12145/4 "2019-10-04T09:29:41Z")

</div>

A lot of go users use vscode which has good support for go. Lots of Go users also just use their favourite text editor.

I use emacs, but that is a whole learning task on its own so I'd probably recommend something easier to start with. However if pycharm works with Go then why not give it a try.

If you are an experienced programmer then you can learn an awful lot of go just by doing [the go tour](https://tour.golang.org/).

Go is a deliberately simple language it has none of the complexities of C++ or Rust, it is more at the C level of complexity. It comes with great tooling though with testing, coverage, race detection, formatting built in.

If you ever learnt C/C#/Java then you'll feel reasonably at home with Go straight away.

(Aside: The type definitions are backwards from C which took me a bit of re-learning but I have to say they are a lot more logical - I no longer need to look up how to make an array of function pointers for example `int (*p[4]) (int x, int y)` (C) vs `var p [4]func(x int, y int)` (Go) which reads in Go "variable p is a 4 element array of function pointers which takes (x, y) parameters which are both integers".)

The concurrency in Go takes a while to master. The syntax is easy but writing concurrent programs is hard! The [go race detector](https://blog.golang.org/race-detector) helps with this.

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [October 4, 2019, 4:24pm UTC](https://forum.rclone.org/t/want-to-learn-go-language-need-advice/12145/7 "2019-10-04T16:24:22Z")

</div>

thanks to all,  
i got vscode installed and running and i modified the launch.json.

---

<div class="post-metadata">

**Author:** ![thestigma](https://forum.rclone.org/user_avatar/forum.rclone.org/thestigma/32/3414_2.png) [@thestigma](https://forum.rclone.org/u/thestigma)\
**Post date:** [October 4, 2019, 5:51pm UTC](https://forum.rclone.org/t/want-to-learn-go-language-need-advice/12145/8 "2019-10-04T17:51:40Z")

</div>

> [@ncw](#):
>
> If you ever learnt C/C#/Java then you'll feel reasonably at home with Go straight away.

Neat. Java and C++ were the two first languages I learned in school. If it's anything like Java then it's mostly just about bothering to read the manuals for the stuff you are working with 🙂

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [October 4, 2019, 8:53pm UTC](https://forum.rclone.org/t/want-to-learn-go-language-need-advice/12145/9 "2019-10-04T20:53:33Z")

</div>

Go has a similar syntax to Java, and like Java it is industrial strength, just without the boilerplate and ceremony! Also go isn't object oriented (no inheritance) it needs a mindset shift there.

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [October 4, 2019, 9:51pm UTC](https://forum.rclone.org/t/want-to-learn-go-language-need-advice/12145/10 "2019-10-04T21:51:22Z")

</div>

need help to build rclone.exe on windows using vscode.  
so far, i have downloaded vscode and did what needed to be done to debug rclone inside the ide.  
and i created a custom launch.json.

now i need to build the rlcone.exe itself with the ability to mount.  
as i understand it from @ncw, there are a few additional steps.  
`" You'll need mingw installed and WinFSP and build Rclone with the flag -tags cmount`"`

as he is super busy, perhaps someone can help me.  
i have installed mingw and winfsp but i am stuck as to what to do with that flag.

so with vscode,

1. what do i need to build the .exe?
2. what to do with that flag '`-tags cmount`?
3. what to do with win-build.bat?

thanks much,

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [October 5, 2019, 2:55pm UTC](https://forum.rclone.org/t/want-to-learn-go-language-need-advice/12145/11 "2019-10-05T14:55:56Z")

</div>

There are some notes here: [https://github.com/rclone/rclone/wiki/Setting-up-a-Windows-development-environment-for-rclone](https://github.com/rclone/rclone/wiki/Setting-up-a-Windows-development-environment-for-rclone)

That shows how to set PATH and CPATH and what to do with the -tags flag 🙂

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [October 5, 2019, 5:23pm UTC](https://forum.rclone.org/t/want-to-learn-go-language-need-advice/12145/12 "2019-10-05T17:23:05Z")

</div>

thanks but that wiki is not helpful to me.

hopefully someone using vscode can help me configure it so i can build rclone.exe

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [January 3, 2020, 5:23pm UTC](https://forum.rclone.org/t/want-to-learn-go-language-need-advice/12145/13 "2020-01-03T17:23:05Z")

</div>

Closed on January 3, 2020, 5:23pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
