go-demo

module
v0.0.0-...-db6da08 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2020 License: MIT

README

go-demo

Golang demo for GDG Vladivostok

Build Status Go Report Card

  • Ex1 - Hello World!
  • Ex2 - Functions and packages, unit testing
  • Ex3 - Multiple return values and error handling
  • Ex4 - Arrays, slices, maps, defer, interface{} and reflection
  • Ex5 - Structs, embedding and methods
  • Ex6 - Goroutines and channels

Slides

Directories

Path Synopsis
1
2
This example shows how to create packages export and use their contents and do some unit testing
This example shows how to create packages export and use their contents and do some unit testing
3
This example shows functions returning multiple values and error handling
This example shows functions returning multiple values and error handling
4
This example shows arrays, slices, maps, defer, interface{} and reflection
This example shows arrays, slices, maps, defer, interface{} and reflection
5
This example shows structs, struct embedding and methods
This example shows structs, struct embedding and methods
6
This example shows usage of goroutines and channels It allocates slice of data_size int64 values sets them all to 1 and runs num_goroutines concurrent goroutines to sum all values
This example shows usage of goroutines and channels It allocates slice of data_size int64 values sets them all to 1 and runs num_goroutines concurrent goroutines to sum all values

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL