How To Install golang-github-mailru-easyjson-dev on Ubuntu 18.04

In this tutorial we learn how to install golang-github-mailru-easyjson-dev on Ubuntu 18.04. golang-github-mailru-easyjson-dev is Fast JSON serializer for golang

Introduction

In this tutorial we learn how to install golang-github-mailru-easyjson-dev on Ubuntu 18.04.

What is golang-github-mailru-easyjson-dev

golang-github-mailru-easyjson-dev is:

easyjson allows (un-)marshaling of JSON golang structs without the use of reflection by generating marshaller code.

One of the aims of the library is to keep generated code simple enough so that it can be easily optimized or fixed. Another goal is to provide users with ability to customize the generated code not available in ’encoding/json’, such as generating snake_case names or enabling ‘omitempty’ behavior by default.

This package contains the development files.

There are three methods to install golang-github-mailru-easyjson-dev on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install golang-github-mailru-easyjson-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install golang-github-mailru-easyjson-dev using apt-get by running the following command:

sudo apt-get -y install golang-github-mailru-easyjson-dev

Install golang-github-mailru-easyjson-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install golang-github-mailru-easyjson-dev using apt by running the following command:

sudo apt -y install golang-github-mailru-easyjson-dev

Install golang-github-mailru-easyjson-dev Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install golang-github-mailru-easyjson-dev using aptitude by running the following command:

sudo aptitude -y install golang-github-mailru-easyjson-dev

How To Uninstall golang-github-mailru-easyjson-dev on Ubuntu 18.04

To uninstall only the golang-github-mailru-easyjson-dev package we can use the following command:

sudo apt-get remove golang-github-mailru-easyjson-dev

Uninstall golang-github-mailru-easyjson-dev And Its Dependencies

To uninstall golang-github-mailru-easyjson-dev and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove golang-github-mailru-easyjson-dev

Remove golang-github-mailru-easyjson-dev Configurations and Data

To remove golang-github-mailru-easyjson-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge golang-github-mailru-easyjson-dev

Remove golang-github-mailru-easyjson-dev configuration, data, and all of its dependencies

We can use the following command to remove golang-github-mailru-easyjson-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge golang-github-mailru-easyjson-dev

References

Summary

In this tutorial we learn how to install golang-github-mailru-easyjson-dev package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.