Golang Course

From OSSCOM
Jump to: navigation, search

01 basics

  • Hello World
  • data types & variables
  • strings
  • Call by Value & by Reference
  • Text output
  • Functions
  • Control structures
  • Exercise: multiplication table

02 files

  • The os package
  • Write into a file
  • Exec Example
  • Exercise: wc command
  • Exercise: cat command
  • Exercise: tac command

03 structs and pointers

  • Structs
  • Pointers
  • Pointer and Structs
  • Pointer and Slices/Maps
  • Exercise: Key-Value store

04 Projectstrcture

  • Gopath
  • Go Toolchain
  • Packages

05 testing

  • Tests
  • stretchr/testify
  • Testing multiple packages
  • Coverage
  • Data Driven Tests
  • Benchmarks
  • Exercise: Calculator with tests
  • Exercise: Benchmarking the Key-Value store

06 objects and interfaces

  • Methods
  • Objects
  • Embedding
  • Overriding
  • Interfaces
  • Mocking
  • Exercise: object oriented Key-Value
  • Exercise: Testing with mocks

07 http

  • Http Basics
  • Handy features of the http package
  • http.Client

08 http extended

  • TLS & HTTP2 mit Go
  • Middleware
  • http testing
  • Web Frameworks & alternative Router

Videos

Course Materials

Slides