How To Install golang-github-bep-tmc-dev on Ubuntu 20.04
Introduction
In this tutorial we learn how to install golang-github-bep-tmc-dev on Ubuntu 20.04.
What is golang-github-bep-tmc-dev
golang-github-bep-tmc-dev is:
Codec for a Typed Map
bep/tmc provides basic roundtrip JSON etc. encoding/decoding of a map[string]interface{} with custom type adapters.
Text based serialization formats like JSON and YAML are convenient, but when used with Go maps, most type information gets lost in translation. For structs, one can work around some of the limitations with custom MarshalJSON, UnmarshalJSON, MarshalText and UnmarshalText. For the commonly used flexible and schema-less “map[string]interface {}”, this is, as the author is aware of, not an option. This library provides a solution to this problem.
See the GoDoc at https://godoc.org/github.com/bep/tmc for some basic examples and how to configure custom codec, adapters, etc.
There are three methods to install golang-github-bep-tmc-dev on Ubuntu 20.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-bep-tmc-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-bep-tmc-dev using apt-get by running the following command:
sudo apt-get -y install golang-github-bep-tmc-dev
Install golang-github-bep-tmc-dev Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install golang-github-bep-tmc-dev using apt by running the following command:
sudo apt -y install golang-github-bep-tmc-dev
Install golang-github-bep-tmc-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-bep-tmc-dev using aptitude by running the following command:
sudo aptitude -y install golang-github-bep-tmc-dev
How To Uninstall golang-github-bep-tmc-dev on Ubuntu 20.04
To uninstall only the golang-github-bep-tmc-dev package we can use the following command:
sudo apt-get remove golang-github-bep-tmc-dev
Uninstall golang-github-bep-tmc-dev And Its Dependencies
To uninstall golang-github-bep-tmc-dev and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove golang-github-bep-tmc-dev
Remove golang-github-bep-tmc-dev Configurations and Data
To remove golang-github-bep-tmc-dev configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge golang-github-bep-tmc-dev
Remove golang-github-bep-tmc-dev configuration, data, and all of its dependencies
We can use the following command to remove golang-github-bep-tmc-dev configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge golang-github-bep-tmc-dev
References
Summary
In this tutorial we learn how to install golang-github-bep-tmc-dev package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.