Skip to content

philippgille/hello-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hello-go

Code for the "Tour of Go"

Build

The code for each chapter is its own file, and because there's a main function in each file, each file is in its own directory.

To build the code file for one chapter, enter the directory and call the build command, like this:

$ cd basics
$ go build

This will produce an executable file, which you can execute like this:

$ ./basics

Note: Some files import external dependencies (libraries that are not part of the standard library).
For example, moretypes.go imports "golang.org/x/tour/pic".
You have to download the dependency first, like this:
go get "golang.org/x/tour/pic"

About

Code for the "Tour of Go"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages