Syntax – Go Lang Practical Programming Tutorial p.2

Welcome to part 2 of the Go programming tutorial series. In the previous tutorial, we got everything set up and ran our first basic program, along with explaining some of what is going on. Here, I plan to further explain some more of our options, and more of how to understand how Go is working and how it can work for you.

Text tutorials and sample code: https://pythonprogramming.net/go/
https://twitter.com/sentdex
https://www.facebook.com/pythonprogramming.net/
https://plus.google.com/+sentdex

Comments

Sir John TML says:

I’m a poor person living in a place with 200KBps average internet. So I watch ads till the very end as I find that’s the only way I can help. :)

Sébastien De Craene says:

I had the same number on the random Kappa

Ajay Rawat says:

yeah n is not included

CJ Burkey says:

I recommend the Gogland IDE, it’s built specifically for Go and has some prereleases available.

Piyush Pallav says:

“[” means including and “)” means not including….Intn help doc gave [0,n)….so its 0-n where “0” is included and “n” is excluded

And many thanks for the GO tutorial, was just wondering to start learning it…:)

Dmitriy A. says:

Chaos – you need coding guidelines, everyone needs it.
I don’t believe Google hasn’t released Golang styling guidelines.

Michi Lo says:

Any hints on debugging go?

João Fernandes says:

About the correct style on formatting: just run `go fmt file.go`

Mohammad Aziz says:

Where does the complied files by Go live?

Fedor Kononov says:

Sublime package (GoSublime) does all indentation/format stuff as you save a file. Basically runs gofmt on each save. Give it a try.

ARainsby says:

You can also use goimports so you don’t have to manually import all the packages you use

Scipio Artelius says:

For the rand godoc. In math, the notation [0,n) means from 0 to the number, not including the number.

That is, a [ on a set indicates that the number is in the set, whereas a ) on a set indicates the set does not include that number.

So [0,n) as an int, means 0-99

Golang Junkie says:

$ gofmt -s

ARainsby says:

The Go community generally use gofmt for style. I’d recommend running that on save.

Victor Rodriguez says:

Good tutorial. Thanks.

Write a comment

*

Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.


Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles▷ Show Cars▷ Motorbikes▷ Scooters▷ Bicycles▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Kinis Swimwear▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Hiking & Trek Gear▷ Diving Equipment▷ Ski Gear▷ Snowboards▷ Surf Boards▷ Rollers & SkatesEntertainment▷ DIY Guides▷ Zik Instruments▷ Published Books▷ Music Albums▷ Cine Movies▷ Trading Helpers▷ Make Money▷ Fishing Equipment▷ Paintball Supplies▷ Trading Card Games▷ Telescopes▷ Knives▷ VapesHigh Tech▷ Flat Screens▷ Tech Devices▷ Camera Lenses▷ Audio HiFi▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Tools Workshop▷ Beddings▷ Floor Layings▷ Barbecues▷ Aquarium Gear▷ Safe Boxes▷ Office Supplies▷ Security Locks▷ Cleaning ProductsKids▷ Baby Strollers▷ Child Car Seats▷ Remote ControlledTravel▷ Luggages & Bags▷ Airlines Seats▷ Hotel Rooms▷ Fun Trips▷ Cruise Ships▷ Mexico Tours