Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Collection of Simple Example go Programs.
Go Makefile

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
arrays
chanasyn
chanfan01
chanfan02
chanfan03
chanfan04
chanfan05
chanfan06
chanfan07
chanfan08
chanloop
chanrange
chanshunt
chansvr1
chansvr2
chansyn
chantest
charshow
dateshow
defer
dtemplex1
dtemplex2
envshow
errtest
fib
fib_embellished
fib_userop
fileread
flagdemo
force_type
func_lit
func_ret
gio12gs01
gio12gs02
gio12gs03
gio12gs04
gio12gs05
gorsynchs
gortns01
greddit
gt044
gt045
hello
hello_small
httpserv
interface_01
interface_02
interface_03
interface_04
interface_04a
interface_04b
list
list_struct
loghello
maps
maps_merge
maps_ss
methods
netcon
numbers
numconv
oltesta
rand_between
ranges
shax
shifter
showallocs
showgo
showmac
showsetcpus
showtime
sliceappt
slices
sltricks
ssl
stomptest
stringlens
strings_utils
struct
switch_demo
symlshow
symltest
tcp01
tcp02
tcp03
tcp04
tcp05
tcp06
testgreek
testppack
type_String
unicloup
unicode_what
uniques
utfconv
xmlshow01
xmlshow02
.gitignore
Makefile
README.mdown

README.mdown

Project go-samp, Samples of Simple go Language Programs

This is a collection of extremely simple examples of using the go programming language.

These samples were inspired primarily by the GoCourseDay#.pdf files previously available in the go distrubution. And some additional experiments. In particular experiments triggered by documentation provided in the go distribution.

Prerequisites

In essence, you need a working go environment, and a few small additions.

At the current HEAD of master, your go build should be at least: weekly.2012-02-07.

You need certain basic functions available to you in order to build and run these go programs.

These include:

  • the go compiler
  • the go linker
  • make

If you are not familiar with go, and want to install it and learn the language, see:

Additional Setup

In order to use the make system for these samples, you will need to have the $GOPATH environment variable properly defined. See the go documentation for details.

Although this system is still installed using make, the 'go' tool is used under the covers. If you require previous versions, please examine previous tags.

Adjust $GOPATH as necessary for your system.

Install

To install all these samples:

  • clone from or fork on github
  • cd to your base git repo directory
  • make packages
  • make

Other Education Resources

Something went wrong with that request. Please try again.