02-write-your-first-program/exercises/README.md
Print your name and your best friend's name using Println twice. Check out this exercise here.
Say hello to yourself.
Build your program using go build
Send it to your friend
S/he should use be using the same operating system.
For example, if you're using Windows, then hers/his should be Windows as well.
Send your program to a friend with a different operating system
So, you should compile your program for her operating system.
Create an OSX executable:
GOOS=darwin GOARCH=386 go build
Create a Windows executable:
GOOS=windows GOARCH=386 go build
Create a Linux executable:
GOOS=linux GOARCH=arm GOARM=7 go build
You can find the full list in here: https://golang.org/doc/install/source#environment
NOTE: If you're using the command prompt or the PowerShell, you may need to use it like this:
cmd /c "set GOOS=darwin GOARCH=386 && go build"
Call Println or Print with multiple values by separating them using commas.
Remove the double quotes from a string literal and see what happens.
Move the package and import statement to the bottom of the file and see what happens.
Take a quick look at the packages and read what they do.
Look at their source-code by clicking on their titles.
You don't have to understand everything, just do it. This will warm you up for the upcoming lectures.
Also, take a tour on: https://tour.golang.org/
Have a quick look. Check out the language features.
We're going to talk all about them soon.