Sabid Ansari has Published 150 Articles

Check if the given characters is present in Golang String

Sabid Ansari

Sabid Ansari

Updated on 07-Apr-2023 10:37:10

6K+ Views

Presence of a specific character or group of characters in a string is a typical procedure when working with strings. Several methods for determining whether specific characters are present in a Golang string will be covered in this article. Using the strings.Contains() Function Using the built-in strings is the simplest ... Read More

Channel in Golang

Sabid Ansari

Sabid Ansari

Updated on 07-Apr-2023 09:45:00

1K+ Views

Channels in Golang are useful for transferring data and coordinating the execution of goroutines. We will go over what channels are, how they operate, and how to use them successfully in Golang in this article. What are Channels? In Golang, channels are a means of data synchronisation and communication between ... Read More

Calculating total number of Hours, Days, Minutes and Seconds between two dates in Golang

Sabid Ansari

Sabid Ansari

Updated on 06-Apr-2023 12:04:04

1K+ Views

Calculating the total number of hours, days, minutes, and seconds between two dates is achievable in Golang. In this article, we'll go through how to accomplish this in Golang, along with the necessary libraries and sample code. Calculating the Total Number of Hours, Days, Minutes, and Seconds In Golang, we ... Read More

Buffered Channel in Golang

Sabid Ansari

Sabid Ansari

Updated on 06-Apr-2023 12:03:31

712 Views

A buffered channel in Golang is a particular kind of channel that enables several values to be transmitted and received without blocking. In this post, we'll talk about buffered channels in Golang, their syntax, and some real-world uses. What is a Buffered Channel? In Golang, a channel type that can ... Read More

Bits Package in Golang

Sabid Ansari

Sabid Ansari

Updated on 06-Apr-2023 12:01:25

704 Views

Bits package in Golang has functions for changing a binary number's individual bits. This package is very helpful in low-level applications like networking, cryptography, and bitwise operations. This post will go through the Golang bits package and show you how to utilise it in a real-world application. Introduction to ... Read More

Basics of JSON with GoLang

Sabid Ansari

Sabid Ansari

Updated on 06-Apr-2023 11:59:21

580 Views

JSON has grown in popularity as a data format for transferring data across apps in recent years. JSON (JavaScript Object Notation) is a compact and simple-to-understand standard for exchanging data. It is widely used in server-to-server communication, mobile applications, and web applications. Its simplicity, concurrency, and scalability make GoLang a ... Read More

Base64 Package in Golang

Sabid Ansari

Sabid Ansari

Updated on 06-Apr-2023 11:55:29

363 Views

Base64 package in Golang is a standard library package that offers capabilities for base64-encoding and -decoding binary data. Base64 is a popular method of encoding that enables binary data to be represented using just sharable ASCII letters, making it perfect for transmission over text-based protocols like HTTP and SMTP. We'll ... Read More

Auto Format Go Programming Language Source Code with Gofmt

Sabid Ansari

Sabid Ansari

Updated on 06-Apr-2023 11:52:32

581 Views

Let's look at how ‘gofmt’ can automatically style your Go source code in a consistent manner so that it is easier to understand and manage. In order to write readable, maintainable code, it must be formatted correctly. Go source code can be formatted using the 'gofmt' command-line tool. Using a ... Read More

Atomic Variable in Golang

Sabid Ansari

Sabid Ansari

Updated on 06-Apr-2023 11:50:11

2K+ Views

Atomic Variable in Golang offer an alternative to use locks or other synchronisation primitives to execute atomic operations on shared variables. When programming concurrently, synchronisation and mutual exclusion are essential to ensuring that threads or processes can access shared resources without interfering with one another. The fast and scalable synchronisation ... Read More

Anonymous Structure and Field in Golang

Sabid Ansari

Sabid Ansari

Updated on 06-Apr-2023 11:48:43

2K+ Views

Anonymous structures and fields in Golang are a powerful feature that can be used to simplify and improve the readability of your code. These constructs allow you to define new data types on the fly without having to create a new named struct. Let's examine anonymous fields and structures in ... Read More

Advertisements