# Learning GO / Very First Post /

**URL:** <https://forum.golangbridge.org/t/learning-go-very-first-post/18374>\
**Category:** Getting Help\
**Created:** [April 13, 2020, 10:34pm UTC](https://forum.golangbridge.org/t/learning-go-very-first-post/18374 "2020-04-13T22:34:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Redwing1980](https://forum.golangbridge.org/letter_avatar_proxy/v4/letter/r/6bbea6/32.png) [@Redwing1980](https://forum.golangbridge.org/u/Redwing1980)\
**Post date:** [April 13, 2020, 10:34pm UTC](https://forum.golangbridge.org/t/learning-go-very-first-post/18374/1 "2020-04-13T22:34:17Z")

</div>

Any recommendations on where to learn the basics in order to get started with the Go programming language?

My brother recommended that I learn to Go - so thought I’d dedicate the next month to learning the basics.

[https://golang.org/doc/install#testing](https://golang.org/doc/install#testing)

Create a file named `hello.go` that looks like:

package main import “fmt” func main() { fmt.Printf(“hello, world\n”)

How do I create a file? No idea. I’m on an Apple. Do I create it via Textedit and rename file “hello.go” ?

Any direction would be appreciated.

Cheers

John

---

<div class="post-metadata">

**Author:** ![lutzhorn](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/lutzhorn/32/8119_2.png) [@lutzhorn](https://forum.golangbridge.org/u/lutzhorn)\
**Post date:** [April 14, 2020, 7:02am UTC](https://forum.golangbridge.org/t/learning-go-very-first-post/18374/2 "2020-04-14T07:02:41Z")

</div>

Once you have [installed Go](https://golang.org/doc/install), you can read the basic article [How to Write Go Code](https://golang.org/doc/code.html).

The [Go Tour](https://tour.golang.org/welcome/1) is also available for an interactive tour.

---

<div class="post-metadata">

**Author:** ![hollowaykeanho](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/hollowaykeanho/32/15191_2.png) [@hollowaykeanho](https://forum.golangbridge.org/u/hollowaykeanho)\
**Post date:** [April 14, 2020, 7:28am UTC](https://forum.golangbridge.org/t/learning-go-very-first-post/18374/3 "2020-04-14T07:28:55Z")

</div>

> [@Redwing1980](#):
>
> How do I create a file? No idea. I’m on an Apple. Do I create it via Textedit and rename file “hello.go” ?
> 
> Any direction would be appreciated.

I normally read books and performs all examples hands on. Please keep in mind that I have computer science and mechatronics engineering background that allows me to speed-read these technical books.

The first book that allows me to program Go is:

1. [Introduction · Build web application with Golang](https://astaxie.gitbooks.io/build-web-application-with-golang/en/)

## About Go Module

I’m not sure whether the Astaxie has updated the book with Go module yet. It had been 5 years already. If he has not done it, you **MUST** ask questions about Go module after reading this: [Using Go Modules - The Go Programming Language](https://blog.golang.org/using-go-modules)

This is because no one uses the old GOPATH way to implement Go package anymore aside maintaining legacy packages.

The rest of the books are merely to show how Go is used in different approaches and implementations. Astaxie integrates some 3rd-party packages and I would suggest you read the codes rather than blindly use it.

## More Computer Science and Engineering Knowledge

If you need to ramp up your Computer Science and Engineering domain knowledge, feel free to check out more books (some are free) here: [https://github.com/dariubs/GoBookshttps://github.com/dariubs/GoBooks](https://github.com/dariubs/GoBookshttps://github.com/dariubs/GoBooks)

---

<div class="post-metadata">

**Author:** ![lutzhorn](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/lutzhorn/32/8119_2.png) [@lutzhorn](https://forum.golangbridge.org/u/lutzhorn)\
**Post date:** [April 14, 2020, 7:44am UTC](https://forum.golangbridge.org/t/learning-go-very-first-post/18374/4 "2020-04-14T07:44:17Z")

</div>

> [@Redwing1980](#):
>
> How do I create a file? No idea. I’m on an Apple. Do I create it via Textedit and rename file “hello.go” ?

Yes, that is possible. Make sure you save the file as plain text.

---

<div class="post-metadata">

**Author:** ![hollowaykeanho](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/hollowaykeanho/32/15191_2.png) [@hollowaykeanho](https://forum.golangbridge.org/u/hollowaykeanho)\
**Post date:** [April 14, 2020, 9:29am UTC](https://forum.golangbridge.org/t/learning-go-very-first-post/18374/5 "2020-04-14T09:29:45Z")

</div>

> [@lutzhorn](#):
>
> Yes, that is possible.

> [@Redwing1980](#):
>
> How do I create a file? No idea.

Oh yeah, if you are a daredevil, try vim: [https://www.openvim.com/](https://www.openvim.com/).

---

<div class="post-metadata">

**Author:** ![Redwing1980](https://forum.golangbridge.org/letter_avatar_proxy/v4/letter/r/6bbea6/32.png) [@Redwing1980](https://forum.golangbridge.org/u/Redwing1980)\
**Post date:** [April 15, 2020, 10:15pm UTC](https://forum.golangbridge.org/t/learning-go-very-first-post/18374/6 "2020-04-15T22:15:22Z")

</div>

so what will the file be Hello.Go or hello.go.txt?

---

<div class="post-metadata">

**Author:** ![NobbZ](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/nobbz/32/3096_2.png) [@NobbZ](https://forum.golangbridge.org/u/NobbZ)\
**Post date:** [April 15, 2020, 10:25pm UTC](https://forum.golangbridge.org/t/learning-go-very-first-post/18374/7 "2020-04-15T22:25:06Z")

</div>

> [@Redwing1980](#):
>
> Create a file named `hello.go` that looks like:

> [@Redwing1980](#):
>
> so what will the file be Hello.Go or hello.go.txt?

You already quoted from the official docs what the expected name is.

Go searches for `*.go` files to compile.

---

<div class="post-metadata">

**Author:** ![avinash92c](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/avinash92c/32/8000_2.png) [@avinash92c](https://forum.golangbridge.org/u/avinash92c)\
**Post date:** [April 16, 2020, 10:06am UTC](https://forum.golangbridge.org/t/learning-go-very-first-post/18374/8 "2020-04-16T10:06:54Z")

</div>

i used this for starters. Shouldnt take too long.

> <https://gist.github.com/avinash92c/710b2641ff7388186860d65266f15bef>

after that there’s a youtube channel  
[https://www.youtube.com/channel/UCx9QVEApa5BKLw9r8cnOFEA](https://www.youtube.com/channel/UCx9QVEApa5BKLw9r8cnOFEA)

Should be relatively easy to get all best practices and tricks from them

---

<div class="post-metadata">

**Author:** ![system](https://forum.golangbridge.org/uploads/default/original/2X/5/5ad234f7c3dbc68b6cc72d338ce4f2973d9fd81c.png) [@system](https://forum.golangbridge.org/u/system)\
**Post date:** [July 15, 2020, 10:06am UTC](https://forum.golangbridge.org/t/learning-go-very-first-post/18374/9 "2020-07-15T10:06:55Z")

</div>

Closed on July 15, 2020, 10:06am UTC

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