How to Install and Uninstall golang-github-hashicorp-go-cleanhttp-dev Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 16,2024

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

Please follow the instructions below to install golang-github-hashicorp-go-cleanhttp-dev on Ubuntu 16.04 LTS (Xenial Xerus)

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

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

This tutorial shows how to uninstall golang-github-hashicorp-go-cleanhttp-dev on Ubuntu 16.04 LTS (Xenial Xerus):

$ 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 16.04 LTS (Xenial Xerus)

Package: golang-github-hashicorp-go-cleanhttp-dev
Priority: extra
Section: universe/devel
Installed-Size: 30
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Go Packaging Team
Architecture: all
Source: golang-github-hashicorp-go-cleanhttp
Version: 0.0~git20151022.0.5df5ddc-1
Filename: pool/universe/g/golang-github-hashicorp-go-cleanhttp/golang-github-hashicorp-go-cleanhttp-dev_0.0~git20151022.0.5df5ddc-1_all.deb
Size: 7462
MD5sum: 520982a77562e5bed2d48114481e682e
SHA1: ff337d1d734ed6d887c709add24818ecf82ce59a
SHA256: 369520dc62ef95f05a4ebc31c4a50777ed15dbbd676f1e89d00edc5c90c434f7
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
Homepage: https://github.com/hashicorp/go-cleanhttp
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu