How To Install golang-github-cbroglie-mapstructure-dev on Debian 10

Learn how to install golang-github-cbroglie-mapstructure-dev on Debian 10 with this tutorial. golang-github-cbroglie-mapstructure-dev is Go library for decoding generic map values into native structures

Introduction

In this tutorial we learn how to install golang-github-cbroglie-mapstructure-dev on Debian 10.

What is golang-github-cbroglie-mapstructure-dev

golang-github-cbroglie-mapstructure-dev is:

Mapstructure is a Go library for decoding generic map values to structures and vice versa, while providing helpful error handling.

This library is most useful when decoding values from some data stream (JSON, Gob, etc.) where you don’t quite know the structure of the underlying data until you read a part of it. You can therefore read a map[string]interface{} and use this library to decode it into the proper underlying native Go structure.

This package is a fork of the golang-github-mitchellh-mapstructure package to more elegantly support decoding data with an unknown structure by using the runtime reflection features of the Go language.

There are three methods to install golang-github-cbroglie-mapstructure-dev on Debian 10. 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-cbroglie-mapstructure-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-cbroglie-mapstructure-dev using apt-get by running the following command:

sudo apt-get -y install golang-github-cbroglie-mapstructure-dev

Install golang-github-cbroglie-mapstructure-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install golang-github-cbroglie-mapstructure-dev

Install golang-github-cbroglie-mapstructure-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install golang-github-cbroglie-mapstructure-dev

How To Uninstall golang-github-cbroglie-mapstructure-dev on Debian 10

To uninstall only the golang-github-cbroglie-mapstructure-dev package we can use the following command:

sudo apt-get remove golang-github-cbroglie-mapstructure-dev

Uninstall golang-github-cbroglie-mapstructure-dev And Its Dependencies

To uninstall golang-github-cbroglie-mapstructure-dev and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove golang-github-cbroglie-mapstructure-dev

Remove golang-github-cbroglie-mapstructure-dev Configurations and Data

To remove golang-github-cbroglie-mapstructure-dev configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge golang-github-cbroglie-mapstructure-dev

Remove golang-github-cbroglie-mapstructure-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge golang-github-cbroglie-mapstructure-dev

Dependencies

golang-github-cbroglie-mapstructure-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install golang-github-cbroglie-mapstructure-dev package on Debian 10 using different package management tools: apt, apt-get and aptitude.