Print 2D Array in Go

Saumya Srivastava
Updated on 28-Dec-2022 12:10:20

1K+ Views

Two−dimensional arrays are commonly used in Go. For example, storing data in a table requires a 2D array. In this tutorial, we will be discussing the approach to printing a 2D array in Golang programming. But before writing this code, let’s briefly discuss the two−dimensional array. What is a 2D Array? A 2D array is comprised of rows and columns. Its nature is similar to a normal array with a fixed length. It is homogeneous in nature, i.e., all the elements stored in a 2D array should be of the same data type. If a 2D array has ‘r’ rows ... Read More

Golang Program to Print an Array

Saumya Srivastava
Updated on 28-Dec-2022 12:06:41

4K+ Views

Data plays an essential role when we write programs. It can be stored in multiple ways. For storing a collection of data with the same data type, an array can be used. In this tutorial, we will be discussing the approach to printing an array in Golang programming. But before writing the code for this, let’s briefly discuss the array. What is an Array? An array has a fixed length and its length cannot be altered. It is homogeneous in nature, i.e., all the elements stored in an array should be of the same data type. If an array has ... Read More

Create a Simple Class in GoLang

Saumya Srivastava
Updated on 28-Dec-2022 11:58:59

948 Views

In this tutorial, we will be discussing the approach to creating a simple class in Golang programming. However, before writing the code for this, let’s briefly discuss the concept of class. What is Class? A class is a template or blueprint for creating objects. A class binds together all the elements of a program and it is an essential part of object−oriented programming. Nevertheless, Go language does not support the ‘class’ keyword unlike other languages like Java, C++, etc. which are object−oriented languages. However, this does not limit Go to using the functionality of a class. Go keeps up with ... Read More

Disable Right Clicking on a Website Using JavaScript

Kalyan Mishra
Updated on 28-Dec-2022 11:45:32

22K+ Views

To disable right-clicking on a website using JavaScript, you can use the contextmenu event to cancel the default behavior of the right−click. The contextmenu event is a DOM event that is triggered when a user right-clicks on an element in a user interface. It is a type of mouse event, similar to the click event, but it is specific to right-clicks. In JavaScript, you can use the addEventListener method to attach a contextmenu event listener to an element. The event listener function will be called whenever the contextmenu event is triggered on the element. Here's an example of how you ... Read More

Role of JavaScript in Software Companies

Kalyan Mishra
Updated on 28-Dec-2022 11:43:54

360 Views

In this article, you will learn about the importance and role of the JavaScript language in the software industry. Where do we use the language and how it helps in production in the software companies everything we will get to know. JavaScript is one of the web development languages used to add functionality to the website. It makes the website interactive, robust, faster, and prettier. It's a scripting, interpreted language that can be directly compiled in a web browser like C, or CPP; it doesn't need a compiler to compile. Basically, to develop a website we need three basic languages: ... Read More

Visually Improve a Website Using JavaScript

Kalyan Mishra
Updated on 28-Dec-2022 11:42:05

580 Views

In this article, you will get to know about various techniques using which you can make your website attractive and fast. Which will increase user engagement and make your website productive. Let’s first get to know about JavaScript. What is JavaScript? JavaScript is one of the web development languages used to add functionality to the website. It makes the website interactive, robust, faster, and prettier. It's a scripting, interpreted language that can be directly compiled in a web browser like C, or CPP; it doesn't need a compiler to compile. This is the reason behind it turning out to be ... Read More

Display Selected Checkboxes on Another Page Using JavaScript

Kalyan Mishra
Updated on 28-Dec-2022 11:39:13

4K+ Views

In this article, you will learn about how to get all the checked boxes on the other page using JavaScript. The checkbox is a type of selection that is a type of binary selection either true or false. It is an option of GUI form present on the page and using this we can take more input from the user. If a box is checked, it indicates true, which means that the user has selected the value and in case the box is unmarked then it indicates that the user has not selected the value. The difference between the checkbox ... Read More

Run AMD64 Docker Images on ARM64 Host Platform

Hemant Sharma
Updated on 28-Dec-2022 11:34:07

10K+ Views

Before knowing how to run amd64 docker images on the arm64 host platform, we must know what this means. There is a term called multi-architecture or multi-platform docker container images. These images contain the ability to run on various base or host architectures provided at the time of containerization of the images. Need of Multiplatform images Suppose you are a DevOps engineer and you have to prepare a web-server for an IT company. You have an amd64 host platform but when you handed over the image to the company you came to know that the company only works on the ... Read More

Run Gunicorn on Docker

Hemant Sharma
Updated on 28-Dec-2022 11:30:25

8K+ Views

In this article, we are going to learn about how to run Gunicorn on Docker. Before creating the docker container with the gunicorn functionalities, we must know some of the basics of web servers and gunicorn. Introduction to Gunicorn Let us suppose we have a web server that shows the output of a python code to the users. This web server will execute the python script each time a request came to it, this will cause it to restart, overload, and delay (heavy delay for huge scripts) in response. So the real problem here we have is a static server ... Read More

Hot Reload in ReactJS with Docker

Hemant Sharma
Updated on 28-Dec-2022 11:17:20

10K+ Views

Hot-Reloading is adding dynamic functionality to the react application on the web browser. This means if we change something in the code of the application it immediately reflects this change on the web application front. But before “reloading” anything we must know “loading”, that is to make some ReactJs project on the Node Docker container. Creation and Containerization of React App Step 1: React app Use the prebuild commands to create a basic react application. Example $npx create-react-app reactapp Output npx: installed 67 in 19.076s Creating a new React app in /home/hemant/project/reactapp. Installing packages. This might take ... Read More

Advertisements