Transition from Java to Go

Transition from Java to Go

2h 17mIntermediate2022-06-09

Authors

Adelina Simion

Adelina Simion

Software Engineer and Technology Evangelist

Course details

If you are used to working in Java but need to learn to code efficiently in Go, instructor Adelina Simion has you covered. In this course, she shows you how to learn Go quickly and continue delivering code at your regular speed in production. Adelina walks you through basics like program structure, running programs, declaring variables, basic data types, and pointers. She defines functions and walks you through how to use several of them in Go. Adelina goes over structures (structs) and interfaces, including call methods, modules, and interfaces. She explains data structures, such as arrays, slices, maps, loops, and ranges, then describes how to handle JSON. Adelina discusses sorting and searching, as well as CLIs. She steps through how to use unit testing in Go, then finishes up with a discussion of concurrency and generics that introduces channels and goroutines.

Skills covered

GoJavaOracleGoogleProgramming LanguagesSoftware DevelopmentOne-Off

Concepts

Introduction

  • Intro
  • Installation and setup

The Basics

  • Program structure
  • Running programs
  • Declaring variables
  • Basic data types
  • Pointers

Functions

  • Function definition
  • Multiple return values
  • If Else
  • Error handling
  • Deferred functions

Structures and Interfaces

  • Struct basics
  • Methods
  • Modules
  • Interfaces
  • Challenge - Temperature converter (Celsius Fahrenheit)
  • Solution - Temperature converter (Celsius Fahrenheit)

Data Structures

  • Arrays
  • Slices
  • Maps
  • Loops and ranges
  • Handling JSON
  • Sorting and searching
  • Building CLIs
  • Challenge - Vacation planner
  • Solution - Vacation planner

Unit Testing

  • Unit testing basics
  • Table testing
  • Mocks

Conclusion

  • Concurrency and generics
  • Next Steps
80,000 Toman