Skip to content
Sign upLog in
← Back to Community

Ever wanted to learn how to use Go? Here's my advice.

Profile icon
SergeantGraham

Want to learn Go?

So, I have heard that many people want to learn how to learn Go. Reason? Well, my reason that I learned go, is so I could learn a Chinese or Japanese programming language, my friend loved to learn Japanese so I thought I would learn this for 'em.

So, if you want to learn go, that's fine! I will have a basics tutorial just right here. So basically, if you want to learn it, it takes PATIENCE. This helped me a lot: https://tour.golang.org/welcome/1 if you want me to explain it, that's fine!

Basic program:

package main import "fmt" // This allows you to print. func main() { fmt.Println("Hello world!") // Outputs: 'Hello world!' in console. }

Another good import is called the "time" import, it is good for telling time, so in your main function (func main()) you would say fmt.Println('The time is', time.Now()). This is really useful for time computer apps, although it would be really low quality. Another good import is import "math" I love it mostly since I am a mathematician, because you can use a special function inside of the func main() you would do fmt.Println(math.Pi) if you lowercase 'Pi' (pi) it won't work, because Go is capital sensitive.

This is all I have! Have a nice day.
Information: https://tour.golang.org/welcome/1
This is more useful for advance learners! ^^

Voters
Profile icon
KrishnaTejaG
Profile icon
SergeantGraham
Comments
hotnewtop
Profile icon
SergeantGraham

Please no hate. :(

Profile icon
[deleted]

@SergeantGraham
Gives intense hate

Profile icon
SergeantGraham
Profile icon
TopperSite

For a while now i have been visiting this site and have always had a good experience. I have read airslate.com/product/document-generation as well and leanred a lot from it. The content there have been quite beneficial.

Profile icon
TopperSite

i have written many articles in the past few weeks, you should read them. you can read a sample article by me on www.signnow.com/ask/how-to-sign-a-pdf-that-has-already-been-signed-by-someone-else. it is actually quite good.

Profile icon
TopperSite

This is my first time i visit here and I found so many interesting stuff in your blog especially it's discussion, thank you. Copy Ai review

Profile icon
TopperSite

I have checked this link this is really important for the people to get benefit from. exotica lebanon

Profile icon
seoexpertim

I found the correct website called https://www.middletonarts.org/a-list-of-topics-about-environment-for-high-school.html. I literally got everything with just in time. There was nothing ominous about this place!