How to Install and Uninstall golang-github-hashicorp-go-cleanhttp-dev Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 16,2024

1. Install "golang-github-hashicorp-go-cleanhttp-dev" package

Here is a brief guide to show you how to install golang-github-hashicorp-go-cleanhttp-dev on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install golang-github-hashicorp-go-cleanhttp-dev

2. Uninstall "golang-github-hashicorp-go-cleanhttp-dev" package

Please follow the step by step instructions below to uninstall golang-github-hashicorp-go-cleanhttp-dev on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove golang-github-hashicorp-go-cleanhttp-dev $ sudo apt autoclean && sudo apt autoremove

3. Information about the golang-github-hashicorp-go-cleanhttp-dev package on Ubuntu 21.10 (Impish Indri)

Package: golang-github-hashicorp-go-cleanhttp-dev
Architecture: all
Version: 0.5.2-1
Multi-Arch: foreign
Priority: extra
Section: universe/devel
Source: golang-github-hashicorp-go-cleanhttp
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Go Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 40
Filename: pool/universe/g/golang-github-hashicorp-go-cleanhttp/golang-github-hashicorp-go-cleanhttp-dev_0.5.2-1_all.deb
Size: 10868
MD5sum: a5c50f04de66f46483950d135d4d806c
SHA1: 529c5d8862523b65bb9553f7ea706d6a20765334
SHA256: 5bd6a6d6e62dedfff59f5970c6ac9f646ebb9a99d33a3e853f25534d51179846
SHA512: 8ec98ad928f3129dad3706515bad37123620d90a176d93335c7fb868b5e495a73ff5f2e3877b7989e2e58ef6baf6400989bd1724f1364de229e12cd383049192
Homepage: https://github.com/hashicorp/go-cleanhttp
Description-en: Functions for accessing "clean" Go http.Client values
The Go standard library contains a default http.Client called
http.DefaultClient. It is a common idiom in Go code to start with
http.DefaultClient and tweak it as necessary, and in fact, this is encouraged;
from the http package documentation:
.
The Client's Transport typically has internal state (cached TCP connections),
so Clients should be reused instead of created as needed. Clients are safe
for concurrent use by multiple goroutines.
.
Unfortunately, this is a shared value, and it is not uncommon for libraries to
assume that they are free to modify it at will. With enough dependencies, it
can be very easy to encounter strange problems and race conditions due to
manipulation of this shared value across libraries and goroutines (clients are
safe for concurrent use, but writing values to the client struct itself is not
protected).
.
Making things worse is the fact that a bare http.Client will use a default
http.Transport called http.DefaultTransport, which is another global value that
behaves the same way. So it is not simply enough to replace http.DefaultClient
with &http.Client{}.
.
This repository provides some simple functions to get a "clean" http.Client --
one that uses the same default values as the Go standard library, but returns a
client that does not share any state with other clients.
.
This package contains the source.
Description-md5: 666b58b21d02ffa210360802acbe29c5