Browsing category:

Go Language


Serialize of the struct will help you to transfer data over network or it will help you to write data on disk. In a distributed system you generate data then serialize, compress and send. On other end you receive data then decompress, deserialize and process. The entire process must be fast and efficient. Go lang[…]

Read More

Assumption: Go lang is installed in your computer Android sample application with GCM support Step1: Generate server API key for GCM, This article will help you to generate server API key: https://support.clevertap.com/docs/android/how-to-find-your-gcm-sender-id-and-gcm-api-server-key.html Step2: Install Go library for GCM

Step3: Write the following function in your main.go, replace server API key in the following function. You can provide multiple[…]

Read More

Assumptions: Go language is installed in your computer iOS sample application with APNs support for testing Step1: Generate certificate PEM file. This article will help you to generate PEM https://www.raywenderlich.com/123862/push-notifications-tutorial Step2: Install Go library for APNs

Step3: Write the following function in your main.go. Place certificate PEM file in config folder. You can change push URL as per[…]

Read More

In this article we will explore following functions of gob func (dec *Decoder) Decode(e interface{}) error func (enc *Encoder) Encode(e interface{}) error Encode and Decode functions are helpful when you want to write network application. Example 1: Simple encoding and decoding student structure

It’s is a simple example. In which we serialize and deserialize Student[…]

Read More