Appendix. Solutions

This appendix provides our solutions for the end-of-lesson exercises and capstone projects. Please keep in mind that there is more than one solution for any problem.

Note

You can download these solutions and the rest of the source code from the Manning website at www.manning.com/books/get-programming-with-go or browse the source code online at github.com/nathany/get-programming-with-go.

Unit 0

Lesson 1

Experiment: playground.go
package main

import (
    "fmt"
)

func main() {
    fmt.Println("Hello, Nathan")
    fmt.Println(" hola")
}

Unit 1

Lesson 2

Experiment: malacandra.go
package main import "fmt" func main() ...

Get Get Programming with Go now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.