Create Command Line Application With Golang

Creating a Command Line Application to Separate Files by Extension in Go If you have a folder with a large number of files and you want to organize them by file extension, you can create a command line application to do this automatically using Go. Go, also known as Golang, is a programming language developed by Google that is designed to be fast, statically-typed, and easy to learn. In this article, we’ll walk through the steps to create a Go program that separates files in a given folder into subfolders based on their extension. ...

December 20, 2022 · 5 min · 890 words

Create Website With Gatsby and Github Pages

GitHub Pages is a free service that allows you to host your website directly from a GitHub repository. It is a great platform for developers to showcase their portfolio, document their projects, or create a personal blog. In this article, we will walk through the steps of creating a static website using GitHub Pages and Gatsby, a popular static site generator. Install Gatsby First, you will need to install Gatsby by running the following command in your terminal: npm install -g gatsby-cli Create a new Gatsby project gatsby new my-website This will create a new directory called my-website with the necessary files and dependencies for your Gatsby project. ...

December 20, 2022 · 3 min · 434 words

Use Redis With Golang

Using Golang and Redis Redis is an in-memory data structure store that can be used as a database, cache, and message broker. It is known for its speed, simplicity, and flexibility. In this article, we will discuss how to use Redis with Golang, a popular programming language known for its simplicity, performance, and concurrency support. Before we dive into the details of using Redis with Golang, let’s first understand the requirements of the application. ...

December 19, 2022 · 7 min · 1488 words

Create Desktop Application to fetch Stock Market Data with Golang

Golang, also known as Go, is a popular programming language known for its simplicity, performance, and concurrency support. Fyne is an open-source cross-platform UI toolkit written in Go, which makes it an excellent choice for building desktop applications. In this article, we will discuss how to build a desktop application for stock market data using Golang and Fyne. Before we dive into the details of building the application, let’s first understand the requirements of the application. ...

December 19, 2022 · 4 min · 734 words

Work with Json field on Postgresql

In PostgreSQL, the json data type can be used to store JSON data. You can use the -> operator to access elements of a JSON object, and the -» operator to access values of a JSON object as text. For example, consider the following table with a JSON field called data: CREATE TABLE documents ( id serial PRIMARY KEY, data json ); To insert a JSON object into the data field, you can use the json_build_object function: ...

December 19, 2022 · 1 min · 198 words