andrzejsliwa / go-koans

koans for go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Koans

Install Golang

Install

Cloning the repo

mkdir -p $GOPATH/src/github.com/sujithps/

git clone git@github.com:sujithps/go-koans.git

Native Usage

  1. Run go test.
  2. Make the failing tests pass, by replacing these types of __variables__ with real values.

Docker Usage

$ ./docker.sh
Unable to find image 'golang:1.16.6-alpine' locally
1.16.6-alpine: Pulling from library/golang
5843afab3874: Pull complete
3d8dd7cab735: Pull complete
4cac70760d29: Pull complete
1edffed539bd: Pull complete
a4005d2dc874: Pull complete
Digest: sha256:bc2db47c5f4a682f1315e0d484811d65bf094d3bcd824459b170714c91656190
Status: Downloaded newer image for golang:1.16.6-alpine

about_basics.go:4
assert(__bool__ == true)  // what is truth?

exit status 1
FAIL    github.com/sujithps/go-koans    0.004s

Helpful References

Bookmark the spec and the packages listing. You can also run the Go website locally with godoc -http=:8080.

Go support in Vim

If you have an interest in a more fancy vim setup, I urge you to consider the post on the Go Development Environment for Vim on the Gopher Academy Blog.

Go-Koans support in Emacs

Jacek Wysocki has provided some nice Go Koans helper scripts for Emacs users at exu/go-koans.el

About

koans for go

License:MIT License


Languages

Language:Go 99.3%Language:Shell 0.7%