Lamin Sanneh
  • Home
  • About
  • Recent Work
  • Recent Posts
  • Experiences
  • More
    Education
  • Posts
  • Dark Theme
    Light Theme Dark Theme System Theme
  • Categories
  • ASP .Net
  • Devops
  • GoLang
  • Javascript
  • Laravel
  • React.js
  • Self Improvement
  • Testing
Hero Image
Go Local Modules and Packages - Understand How to Create and Use Them

Introduction When building applications in Go, modularizing your code into separate modules and packages is essential for maintaining clean and reusable code. In this tutorial, we’ll walk through creating two local Go modules: restapi01/backend and restapi/maincaller. The backend module will serve as a basic HTTP server that outputs a simple HTML view, while the maincaller module will call functions from backend. We shall look into: Initializing Go modules and packages. Using go mod edit and go mod tidy to set up local imports without publishing packages.

    Saturday, November 9, 2024 | 3 minutes Read
    Navigation
    • About
    • Recent Work
    • Recent Posts
    • Experiences
    • Education
    Contact me:
    • lamin.evra@gmail.com

    Toha Theme Logo Toha
    © 2024 Copyright.
    Powered by Hugo Logo