Introduction
In this tutorial we learn how to install golang-github-azure-go-autorest-dev
on Ubuntu 20.04.
What is golang-github-azure-go-autorest-dev
golang-github-azure-go-autorest-dev is:
Package autorest implements an HTTP request pipeline suitable for use across
multiple go-routines and provides the shared routines relied on by AutoRest
(see https://github.com/Azure/autorest/) generated Go code.
The package breaks sending and responding to HTTP requests into three phases:
Preparing, Sending, and Responding.
Each phase relies on decorators to modify and / or manage processing.
Decorators may first modify and then pass the data along, pass the data first
and then modify the result, or wrap themselves around passing the data (such as
a logger might do). Decorators run in the order provided.
Preparers and Responders may be shared and re-used (assuming the underlying
decorators support sharing and re-use). Performant use is obtained by creating
one or more Preparers and Responders shared among multiple go-routines, and a
single Sender shared among multiple sending go-routines, all bound together by
means of input / output channels.
Decorators hold their passed state within a closure (such as the path
components in the example above). Be careful to share Preparers and Responders
only in a context where such held state applies. For example, it may not make
sense to share a Preparer that applies a query string from a fixed set of
values. Similarly, sharing a Responder that reads the response body into a
passed struct (e.g., ByUnmarshallingJson) is likely incorrect.
Lastly, the Swagger specification (https://swagger.io) that drives AutoRest
(https://github.com/Azure/autorest/) precisely defines two date forms: date and
date-time. The github.com/Azure/go-autorest/autorest/date package provides
time.Time derivations to ensure correct parsing and formatting.
Errors raised by autorest objects and methods will conform to the
autorest.Error interface.
There are three methods to install golang-github-azure-go-autorest-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-azure-go-autorest-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-azure-go-autorest-dev
using apt-get
by running the following command:
sudo apt-get -y install golang-github-azure-go-autorest-dev
Install golang-github-azure-go-autorest-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install golang-github-azure-go-autorest-dev
using apt
by running the following command:
sudo apt -y install golang-github-azure-go-autorest-dev
Install golang-github-azure-go-autorest-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-azure-go-autorest-dev
using aptitude
by running the following command:
sudo aptitude -y install golang-github-azure-go-autorest-dev
How To Uninstall golang-github-azure-go-autorest-dev on Ubuntu 20.04
To uninstall only the golang-github-azure-go-autorest-dev
package we can use the following command:
sudo apt-get remove golang-github-azure-go-autorest-dev
Uninstall golang-github-azure-go-autorest-dev And Its Dependencies
To uninstall golang-github-azure-go-autorest-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-azure-go-autorest-dev
Remove golang-github-azure-go-autorest-dev Configurations and Data
To remove golang-github-azure-go-autorest-dev
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge golang-github-azure-go-autorest-dev
Remove golang-github-azure-go-autorest-dev configuration, data, and all of its dependencies
We can use the following command to remove golang-github-azure-go-autorest-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge golang-github-azure-go-autorest-dev
References
- golang-github-azure-go-autorest-dev website
- golang-github-azure-go-autorest-dev on packages.ubuntu.com
Summary
In this tutorial we learn how to install golang-github-azure-go-autorest-dev
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.