Unofficial Go SDK for Hugging Chat.
Golang: Random Numbers
Introduction
In the 27th post of the series, we will be looking into random number generation in golang. We will be exploring how to create a random number, generate random numbers within a range, shuffle slices/arrays, and generate random strings, float, and bytes.
There are two types of random number generation processes in software pseudo-random numbers and cryptographically secure pseudo-random number generation.
The math/rand package in Golang provides a number of functions for generating pseudorandom numbers. These functions are suitable for a variety of applications, such as games, simulations, and to some extent in cryptography.
MindsDB Golang SDK(Client)
Unofficial go SDK for MindsDB API.
Golang: Regex
Introduction
In this 26th part of the series, we will be covering the basics of using regular expressions in golang. This article will cover the basic operations like matching, finding, replacing, and sub-matches in a regular expression pattern from string source or file content. This will have examples for each of the concepts and similar variants will follow the same ideology in self-exploring the syntax.
Regex in golang
So, let’s start with what are regular expressions.
Creating a Chat Application with Django and HTMX
Django + HTMX Chat application
Introduction
In this article, we will be creating a Django project, which will be a chat-room kind of application. The user needs to authenticate to the app and then and there he/she can create or join rooms, every room will have some name and URL associated with it. So, the user simply needs to enter the name of the room, which will be unique. The user can then simply enter the messages in the chat room. This is a core chat application that uses web sockets.
Golang: Command Line Arguments
Introduction
In the 25th post of the series, we will be taking a look into parsing of command line arguments in golang. We will be exploring how to do the basics of parsing and using the positional parameters or arguments from the command line in the program. By using standard library packages like os and flag, we can make powerful yet easy-to-build CLI apps and programs.
Parsing Arguments from the command line (os package)
We can use the os package to get the arguments from the command line in a go script. We have to use the Args variable in the os package. The Args variable is a slice of strings which thereby is the parsed arguments from the command line.
2022: Year Review
Introduction
Well, what a year! If 2021 was a start, 2022 was a year to convert a start into a goal. From collaborating on open-source projects to getting an internship, it was an exciting year! Created a couple dozen of projects(not finished as usual), wrote 40+ articles, did a couple of streams, learned the basics of golang, and spend 6 months as a backend dev intern at Solarlabs, just a year that was awaited for the hard work over the span of 2 years.
Golang: File Write
Introduction
In the 24th post of the series, we will be taking a look at how we can perform write operations to a file using golang. We will be using the os package in most operations along with bufio text manipulations. We will be performing write operations like appending, deleting, and replacing a file using golang. We will be heavily leveraging standard library packages like os, bufio, bytes and fmt. We will also be looking into overwriting and string formatting to a file.
Read a Rss Feed with a URL in Golang
Reading Rss Feed with a Rss XML Link/URL in golang using encoding package
Create a Non-Clustered Index in Django with Postgres as DB
Understanding how to add a non-clustered index in a postgres database in a django project.