Welcome to this new series on learning software development in Golang. Beginning from this article, we will be going into the path of learning the Go programming language while building a real world project that we can later deploy on a server as a useful service.
So without further delay, let’s get started on the project!
But before that…
Make sure to go through my Go utilities article to set up your development environment nicely! 👇🏻
Setting up our Project and Dependencies
The focus of this project is upon building a utility discord bot that can do certain small but useful things within our server. But we can discuss about what those useful things may comprise of later, first, let’s see how to set up our project and install some of the libraries we will be using.
Go to your Go development folder on your local machine and enter:
mkdir discord_bot
cd discord_bot
We now want to initialize a new Go project in our root project folder:
go init
This now builds us a new go.mod
file in our project directory. You’ll see that it contains the go version and the simple module path on your local machine like so:
module yashprakash13/Go-Basics/discord_bot
go 1.19
Now, let’s install the required libraries.