Chapter 4 - Packages
Exercise 1: Importing Packages
Solution
To download and install a package at https://github.com/jaymcgavren/car
, you’d run:
$ go get github.com/jaymcgavren/car
This program will call all the functions contained in that package and its sub-packages:
Output:
Opening door
Shining headlights
Playing music
Bwomp bwamp BWOOOOMP
Turning front wheels
Peeling out!