How To Install golang-github-tendermint-go-wire-dev on Debian 10

Learn how to install golang-github-tendermint-go-wire-dev on Debian 10 with this tutorial. golang-github-tendermint-go-wire-dev is Go bindings for the Wire encoding protocol

Introduction

In this tutorial we learn how to install golang-github-tendermint-go-wire-dev on Debian 10.

What is golang-github-tendermint-go-wire-dev

golang-github-tendermint-go-wire-dev is:

This software implements Go bindings for the Wire encoding protocol. The goal of the Wire encoding protocol is to be a simple language-agnostic encoding protocol for rapid prototyping of blockchain applications.

  • Supported types:
  • Primary types: uvarint, varint, byte, uint[8,16,32,64], int[8,16,32,64], string, and time types are supported
  • Arrays: Arrays can hold items of any arbitrary type. For example, byte-arrays and byte-array-arrays are supported.
  • Structs: Struct fields are encoded by value (without the key name) in the order that they are declared in the struct. In this way it is similar to Apache Avro.
  • Interfaces: Interfaces are like union types where the value can be any non-interface type. The actual value is preceded by a single “type byte” that shows which concrete is encoded.
  • Pointers: Pointers are like optional fields. The first byte is 0x00 to denote a null pointer (e.g. no value), otherwise it is 0x01.
  • Unsupported types:
  • Maps: Maps are not supported because for most languages, key orders are nondeterministic. If you need to encode/decode maps of arbitrary key-value pairs, encode an array of {key,value} structs instead.
  • Floating points: Floating point number types are discouraged because of reasons. If you need to use them, use the field tag wire:“unsafe”.
  • Enums: Enum types are not supported in all languages, and they’re simple enough to model as integers anyways.

A compatible (and slower) JSON codec is included.

This package includes the source code and development files to compile applications.

There are three methods to install golang-github-tendermint-go-wire-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-tendermint-go-wire-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-tendermint-go-wire-dev using apt-get by running the following command:

sudo apt-get -y install golang-github-tendermint-go-wire-dev

Install golang-github-tendermint-go-wire-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install golang-github-tendermint-go-wire-dev using apt by running the following command:

sudo apt -y install golang-github-tendermint-go-wire-dev

Install golang-github-tendermint-go-wire-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-tendermint-go-wire-dev using aptitude by running the following command:

sudo aptitude -y install golang-github-tendermint-go-wire-dev

How To Uninstall golang-github-tendermint-go-wire-dev on Debian 10

To uninstall only the golang-github-tendermint-go-wire-dev package we can use the following command:

sudo apt-get remove golang-github-tendermint-go-wire-dev

Uninstall golang-github-tendermint-go-wire-dev And Its Dependencies

To uninstall golang-github-tendermint-go-wire-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-tendermint-go-wire-dev

Remove golang-github-tendermint-go-wire-dev Configurations and Data

To remove golang-github-tendermint-go-wire-dev configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge golang-github-tendermint-go-wire-dev

Remove golang-github-tendermint-go-wire-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge golang-github-tendermint-go-wire-dev

Dependencies

golang-github-tendermint-go-wire-dev have the following dependencies:

References

Summary

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