Risks Associated with Public Wi-Fi

Pranavnath
Updated on 03-May-2023 11:55:31

189 Views

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

Golang Program to Search for a File in a Directory

Akhil Sharma
Updated on 03-May-2023 11:52:40

2K+ Views

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

Difference Between Cloud Hosting and Dedicated Hosting

Pranavnath
Updated on 03-May-2023 11:51:38

218 Views

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

Golang Program to Delete a Directory

Akhil Sharma
Updated on 03-May-2023 11:50:51

239 Views

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

SFTP File Transfer Protocol

Pranavnath
Updated on 03-May-2023 11:48:48

673 Views

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

Create Directories Recursively in Go

Akhil Sharma
Updated on 03-May-2023 11:47:00

3K+ Views

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

Sending Email Using SMTP in Golang

Akhil Sharma
Updated on 03-May-2023 11:38:16

1K+ Views

In this golang article, we can send email using SMTP’s SendMail method, as well as using SMTP with go mail method, SMTP stands for simple mail transfer protocol. This protocol is used to send messages between the servers. The net/smtp package provides a medium to send messages hence it must be imported in the program. Syntax smtp.PlainAuth() This function belongs to the smtp and is primarily used to authenticate with the SMTP server using plain authentication. smtp.SendMail() This function is present in the SMTP package. It is used to send the message from the SMTP server. smtpClient.Auth() ... Read More

Difference Between BSS and ESS

Pranavnath
Updated on 03-May-2023 11:37:55

3K+ Views

BSS and ESS are terms used in wireless networking to describe different types of wireless networks and their functions. A BSS is a wireless network made up of a group of devices within range of an access point and its AP, while an ESS is a network made up of multiple BSSs connected through a distributed system. Key differences between BSS and ESS include coverage, scalability, roaming, and definition. BSS has limited coverage, scalability, and roaming, while ESS provides better scalability, coverage, and roaming capabilities. Understanding these differences is important in choosing the right wireless network for your particular application. ... Read More

Golang Program to Implement Recursive Anonymous Function

Akhil Sharma
Updated on 03-May-2023 11:36:18

443 Views

In this Go language article, we will write programs to implement recursive anonymous function by generating fibonacci numbers, by using cache, as well as factorial of a number. An anonymous function is the function which does not have its name and it calls itself within its own body and when repeated calls are made, it called as recursive functions. Method 1 In this Example, we will generate Fibonacci numbers recursively by using an anonymous function. Here, fibo is assigned to the anonymous function with func and an input parameter. Algorithm Step 1 − Create a package main and declare ... Read More

Overview of Testing Package in Golang

Akhil Sharma
Updated on 03-May-2023 11:34:44

197 Views

In this golang article, we will learn the overview testing package using two test functions as well as using iteration. Testing is of two types: manual testing and automated testing, manual testing is done manually with defined set of test cases whereas in automated testing a program is created with code to test the software. Here we will use two test function as well as iteration method to show the importance of testing package. Algorithm Step 1 −Import the required packages in the program Step 2 − Create a test function in which the function will be called which ... Read More

Advertisements