YaK:: Beginners in Golang [Changes]   [Calendar]   [Search]   [Index]   [PhotoTags]   

Beginners in Golang

Some suggestions for getting started:

1. Hello world.

2. echo.go -- print your arguments.

2a. import "os" and "fmt"

2b. import "flag" and use flag.Arg(int) (hint you must call flag.Parse())

2c. import "bufio" and use NewWriter(os.Stdout)

3. Print the average of the command line arguments, which are floating point numbers.

3b. import "math/big" and use big.Int

(unless otherwise marked) Copyright 2002-2014 YakPeople. All rights reserved.
(last modified 2018-08-11)       [Login]
(No back references.)