Practice It: Go REST API Server

Practice It: Go REST API Server

2h 42mIntermediate2022-11-09

Authors

Martine Moses

Martine Moses

Back-End and Integration Developer

Course details

Go is one of the hottest programming languages today. Familiarity with it empowers you to go after a job or project that uses Go as its programming language. In this course, instructor Martine Moses goes over golang basics, such as project layout, creating Go modules, and importing your own libraries and modules or third-party libraries and modules. She also shows you the processes for creating a rest server, creating routers and handlers, and working with a database.

Skills covered

GoGoogleProgramming LanguagesSoftware DevelopmentOne-Off

Concepts

Introduction

  • Programming in Go
  • What you should know
  • Using GitHub Codespaces with this course

Some Basics

  • Installing Go and third-party libraries
  • Hello World
  • Creating a new module
  • Try it - Move functions to a new module
  • Check it - Move functions to a new module

Some Advanced Basics

  • Methods vs. functions
  • Structs and receiver methods
  • Pointers vs. value methods
  • The database
  • Try it - Create a struct and receiver methods
  • Check it - Create a struct and receiver methods

The Rest API Server

  • Using a router
  • Try it - Add the router
  • Check it - Add the router
  • Creating handlers - GET
  • Creating handlers - POST
  • Try it - Create the order handler
  • Check it - Create the order handler

POST and Beyond

  • Integration tests
  • Try it - Create integration tests
  • Check it - Create integration tests

Conclusion

  • Next steps
80,000 Toman