In this golang article, we will write a go language program to display all the directories in a given directory using the Go programming language using the open() function, using the walk function as well as using the readdir function. Method 1 In this Example we will write a go language program to display all the directories in a directory by using the open() function present in os package. One of the simplest methods to display the directories in a given directory is to use the os.Open() function. Example package main import ( "fmt" ... Read More
In an IT field or any company, the computer systems are interconnected to the same server to share information among them. It follows distributed information systems, in which every computer is physically connected and connected to a common network. RPC stands for Remote Procedure Call which is a type of protocol used in the operating system for making communication over remote devices. Using the RPC message protocol, the message request is sent and after getting the reply the communication is established. Remote Procedure Call The TCP/IP or UDP comes under the low-level transport layer protocol for communication between the networks ... Read More
People are getting connected easily with others using the network for sharing data. The data is transmitted from the sender side to the client side either in a wired or wireless connection and the mode of medium will be guided or unguided. For the wired way of data transmission, the connections can be chosen from the coaxial cable, fiber optic cable, and twisted pair cable. Wireless Communication emerged in the 19th century and is used in every field of communication. Wireless Communication Data communication occurs in the unguided medium when the sender and receiver are not physically connected but use ... Read More
Filtering Filtering is the process of validating or screening, whether input data given by the user meets the standard format or not. Content filtering is the process of screening emails or web pages that are undesirable. These operate with predefined patterns that include user text string or image data. Recent versions of firewalls include filtering options as built-in features either as hardware or software support. Content filtering is used in cybersecurity as it can block malicious or hacked websites and also block social networking websites as per standard policies defined in corporate organizations. Filtering methods can be deployed in applications ... Read More
Pubic Wi-Fi is more dangerous in the early times and now it has included solutions to the risks of Wi-Fi. In the modern world, Wi-Fi is installed in every place to make people have easier access to the internet. Even though it provides the usage of the internet without any password, it is also possible that the devices that are connected to public Wi-Fi will face cyber attacks. Some examples of public Wi-Fi are set up in airports, Railway stations, Restaurants, and public libraries. Public Wi-Fi The websites have a separate encryption technique to prevent cyber attacks and so it ... Read More
In this golang article we will write a go language program to search for a file in a directory using os.Open() function as well as using the ioutil.ReadDir() function. Searching for a specific file in golang can be very difficult task, if you have a lot of files to search, but golang makes this a easy task with its built In functions, we will see the use case of such functions in this article. Algorithm First, we need to import the "fmt" and "os" packages. Then, start the main() function. Inside the main() define the name of the directory ... Read More
Hosting When the user or customer wants to host a website or any web application which can be accessed using an Internet connection and this hosting service is done by the server. A server is a system that provides the user with data storage space, resources, software tools, interfaces, etc., and when the web page gets hosted on the Internet and people can interact with it. An individual website that is stored on the server and hosted on the web platform has a unique address, and when a user searches for a specific URL then they are navigated to ... Read More
In this golang article, we will delete a directory in Golang using thhe os.Remove() function as well as using os.RemoveAll() function. There are many inbuilt functions present in go to remove a directory, and we will discuss two of such methods in this program. In computer languages a directory is a container or a file system object that contains information about files and other directories. Syntax funcRemove(file_name string) error The remove function is present in os package and is used to remove a particular file or directory. The function accepts one argument which is the name of the file ... Read More
In the world of cyberattacks, organizations should have a trustable source to make secured file transfers. For this IETF (Internet Engineering Task Force) developed a protocol named the Secured File Transfer Protocol along with the secure shell to have the strongest protection against hackers. Using this protocol, we can avoid the Man-in-the-attack which is the most vulnerable attack faced during file transfer on the internet. The transferred file is authenticated and a secured shell is provided so the hacker cannot see the password, thus reducing the threats. Secure File Transfer Protocol SFTP comes under the network layer of the OSI ... Read More
In this golang article we will write a program to create directories recursively using os.MkdirAll() function as well as using recursion. One of the main use cases of Go is to create scalable and concurrent applications. Method 1 In this Example we will write a go language program to create directories recursively by using MkdirAll() function present in os package. The simplest way to create directories recursively in Golang is by using this function. This function takes a file path as an argument and creates all the missing directories in the path. Syntax funcMkdirAll(path string, perm FileMode) error The ... Read More
 
 Data Structure
 Data Structure Networking
 Networking RDBMS
 RDBMS Operating System
 Operating System Java
 Java MS Excel
 MS Excel iOS
 iOS HTML
 HTML CSS
 CSS Android
 Android Python
 Python C Programming
 C Programming C++
 C++ C#
 C# MongoDB
 MongoDB MySQL
 MySQL Javascript
 Javascript PHP
 PHP 
		