Go language learning exercises.
Go to file
Gytis Repečka da314f15dd
Added struct-interface.go - in this exercise two structs Car and Truck has interface Vehicle and methods for it. Example shows how methods (functions) should be written for just specific struct or for the interface (i.e. applicable for both Car and Truck). Also explaining use of pointers as opposed to using a copy of obejct.
2018-10-27 20:17:19 +03:00
.gitignore Initial commit 2018-10-07 22:24:58 +03:00
LICENSE Initial commit 2018-10-07 22:24:58 +03:00
README.md Updated README with initial details. 2018-10-09 20:37:00 +03:00
basic-struct.go Added basic-struct.go with example of using struct in struct, also calling method. 2018-10-10 22:11:25 +03:00
draw-image.go Added draw-image.go which draws circle using Midpoint circle algorithm. To output full circle I used to draw smaller circles inside up to center but eventually there are not filled pixels left. 2018-10-27 19:29:56 +03:00
draw-image.png Added draw-image.go which draws circle using Midpoint circle algorithm. To output full circle I used to draw smaller circles inside up to center but eventually there are not filled pixels left. 2018-10-27 19:29:56 +03:00
recursive-function.go Added recursive-function.go initial version. 2018-10-09 20:16:16 +03:00
struct-interface.go Added struct-interface.go - in this exercise two structs Car and Truck has interface Vehicle and methods for it. Example shows how methods (functions) should be written for just specific struct or for the interface (i.e. applicable for both Car and Truck). Also explaining use of pointers as opposed to using a copy of obejct. 2018-10-27 20:17:19 +03:00

README.md

go-learning

Go language learning exercises.

Download and run

Download repository contents from GitHub:

git clone https://github.com/gytisrepecka/go-learning.git

Run desired file, e.g.:

go run recursive-function.go

Have fun!

Credits

These programs are written as Go programming language self-learning effort by Gytis Repečka. Read more at my website.