For a couple of months now, I’ve been searching for new projects to work on, where I can learn more about Go, and not really wanted to continue with Web Development.
I came across a tutorial where they Build Your Own Text Editor which is using the C language.
This is my attempt on porting that tutorial to Go, this will be divided in several posts that I will be publishing as I continue with the process.
In this first chapter, we will be setting up the project and enter raw mode so we can build from there our text editor.
Setting up the project
Note: This project has been developed and tested on LINUX, if you’d like to port this to Mac or Windows, you are welcome to make a PR in that regard
**Requis…
For a couple of months now, I’ve been searching for new projects to work on, where I can learn more about Go, and not really wanted to continue with Web Development.
I came across a tutorial where they Build Your Own Text Editor which is using the C language.
This is my attempt on porting that tutorial to Go, this will be divided in several posts that I will be publishing as I continue with the process.
In this first chapter, we will be setting up the project and enter raw mode so we can build from there our text editor.
Setting up the project
Note: This project has been developed and tested on LINUX, if you’d like to port this to Mac or Windows, you are welcome to make a PR in that regard
Requisites
- Go language: If you don’t have it already installed, you can do it following the installation instructions
- A code editor: In this tutorial we will be using NeoVim
- A terminal: I will be using Alacritty
Start up
On your terminal we will create the project directory, and initialize the go module:
mkdir kilo-go
cd kilo-go
go mod init github.com/alcb1310/kilo-go
Note: Remember to change the module name for your own
This will be a series of articles where we will be going through all the steps to code the Text Editor