Skip to main content

Write Data to CSV File using Golang

CSV (Comma Separated Value) is the most used file format to store and share the data. It is widely used in web applications to export and import dynamic data.

In our previous tutorial you have learned how to read CSV file in Golang. In this tutorial you will learn how to write data to the CSV file using Golang. The Go has encoding/csv package which has NewWriter() method. The NewWriter() method returns a Writer object which is used for writing CSV data. The csv.Writer obejct writes csv records which are terminated by a newline and uses a comma as the field delimiter.

We will cover this tutorial step by step to create CSV file and write to records to CSV file using Golang. (more…)

How to Read CSV File using Golang

CSV (Comma Separated Value) is a popular file format to store and share data. The CSV files are widely used in web applications to export and import dynamic data.

In our previous tutorial you have learned how to parse JSON file in Golang. In this tutorial you will learn how to read and parse CSV file data in Golang. The Go provides encoding/csv package to read CSV file. We will use this package to handle CSV file parsing.

We will cover this tutorial step by step to create a CSV file with some sample data. Then we will open CSV file and read CSV file data and store CSV file data into an object. Then display CSV file data using object. (more…)

Parsing JSON Data using Golang

JSON (Javascript Object Notation) is a standard format for storing data. The JSON format is the most used format in web applications to read and write dynamic data. Most of RESTful APIs are implemented to return JSON data response.

As in our previous tutorial you have learned how to Read File Line by Line using Golang. Here in this tutorial we are going to explain how to parse JSON data using Golang to implement in your web applications.

We will cover this tutorial step by step to create a JSON data file and read JSON file data. The we handle functionality to parse JSON. (more…)

Read File Line by Line using Golang

Reading a file is very common functionality of programming languages. The files read and write functionality implemented in web applications.

In our previous tutorial you have learned how to read Read CSV File using Golang. In this tutorial you will learn how to implement functionality to read file line by line using Golang. We will create a text file and read text file line by line to display data using Golang.

We will cover this tutorial step by step to create a Go file to implement functionality to read text file line by line and display file data.

The Go has bufio package to read files line by line. In this tutorial, we will use this package to read file line by line. (more…)

Build Online Voting System with PHP & MySQL

Online Voting System or Online Poll System is a functionality that’s used in websites to allow users to vote get user’s views. The polls are created with options to vote and also view the poll vote results. The poll or voting system is mostly used by news and eCommerce websites to take user’s opinions.

So if you’re thinking about implementing poll or voting system then you’re here at right place. In our previous tutorial you have learned how to create Helpdesk system with php and MySQL. In this tutorial you will learn how to implement online voting system with PHP and MySQL. (more…)

Datatables Add Edit Delete with Ajax, PHP & MySQL

HTML Tables are extensively used in web applications to display data in rows and columns. The tables are just HTML element and can only be used to display records. But if you’re want HTML Table which are interactive and have features like sorting, search, pagination then you’re here at right place.

In this tutorial you will learn about jQuery Datatables plugin to create interactive and feature rich HTML tables with dynamic data. We will create Live Datatables to add, update and delete records with PHP and MySQL. We will handle to refresh Datatables when any record updated or delete from table.

We will cover this tutorial step by step by create live example of Datatables with add, edit and delete records using PHP and MySQL.
(more…)