Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Understanding Structs and Interfaces in Go

via CodeSignal

Overview

This course focuses on exploring Go's unique approach toward Object-Oriented Programming, enabling you to create Go programs using structs and interfaces.

Syllabus

  • Lesson 1: Crafting Custom Data Types: An Introduction to Structs in Go
    • Create a Library Book Struct in Go
    • Enhancing Struct Initialization with Field Names
    • Add a Struct for a Book in Go
    • Displaying Books in a Digital Library
    • Modeling a Library Using Structs in Go
  • Lesson 2: Understanding Methods in Go: Extending Data Types with Functionality
    • Automobile Expo Display: Showcasing Struct Methods in Go
    • Enhance the Automobile Accelerate Method
    • Add Drive Method Implementation to Car Struct in Go
    • Write a Go Program for Car Struct with a Display Method
  • Lesson 3: Understanding Interfaces in Go: How to Define and Implement Them
    • Interface Implementation in Go: Athlete Training Sessions
    • Add Interface Training Method to Athlete Struct in Go
    • Implementing Athletic Coaching Interface in Go
    • Add Training Methods for Athletes
  • Lesson 4: Composing Code in Go: A Beginner's Guide to Structs and Interfaces
    • Exploring Composition with Schools and Students in Go
    • Modify Student Struct Field in Go
    • Add Department Affiliation to Teacher Struct in Go
    • Compose School and Student Structures in Go
  • Lesson 5: Understanding Polymorphism in Go: From Theory to Practice
    • Polymorphic Zoo: Animal Expressions in Go
    • Add Behaviors to Zoo Simulator Animals in Go
    • Add the Elephant Struct to the Zoo Simulator

Reviews

Start your review of Understanding Structs and Interfaces in Go

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.