update: write your first program exercise for windows
This commit is contained in:
@ -16,18 +16,21 @@
|
|||||||
|
|
||||||
So, you should compile your program for her operating system.
|
So, you should compile your program for her operating system.
|
||||||
|
|
||||||
**For OSX, type:**
|
**Create an OSX executable:**
|
||||||
`GOOS=darwin GOARCH=386 go build`
|
`GOOS=darwin GOARCH=386 go build`
|
||||||
|
|
||||||
**For Windows:**
|
**Create a Windows executable:**
|
||||||
`GOOS=windows GOARCH=386 go build`
|
`GOOS=windows GOARCH=386 go build`
|
||||||
|
|
||||||
**For Linux:**
|
**Create a Linux executable:**
|
||||||
`GOOS=linux GOARCH=arm GOARM=7 go build`
|
`GOOS=linux GOARCH=arm GOARM=7 go build`
|
||||||
|
|
||||||
**You can find the full list in here:**
|
**You can find the full list in here:**
|
||||||
https://golang.org/doc/install/source#environment
|
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"`
|
||||||
|
|
||||||
4. **Call [Print](https://golang.org/pkg/fmt/#Print) instead of [Println](https://golang.org/pkg/fmt/#Println)** to see what happens.
|
4. **Call [Print](https://golang.org/pkg/fmt/#Print) instead of [Println](https://golang.org/pkg/fmt/#Println)** to see what happens.
|
||||||
|
|
||||||
5. **Call [Println](https://golang.org/pkg/fmt/#Println) or [Print](https://golang.org/pkg/fmt/#Print) with multiple values** by separating them using commas.
|
5. **Call [Println](https://golang.org/pkg/fmt/#Println) or [Print](https://golang.org/pkg/fmt/#Print) with multiple values** by separating them using commas.
|
||||||
|
Reference in New Issue
Block a user