How To Install compat-golang-github-facebookgo-inject-devel on Fedora 36

In this tutorial we learn how to install compat-golang-github-facebookgo-inject-devel in Fedora 36. compat-golang-github-facebookgo-inject-devel is Reflect based injector

Introduction

In this tutorial we learn how to install compat-golang-github-facebookgo-inject-devel on Fedora 36.

What is compat-golang-github-facebookgo-inject-devel

Package inject provides a reflect based injector. A large application built with dependency injection in mind will typically involve the boring work of setting up the object graph. This library attempts to take care of this boring work by creating and connecting the various objects. Its use involves you seeding the object graph with some (possibly incomplete) objects, where the underlying types have been tagged for injection. Given this, the library will populate the objects creating new ones as necessary. It uses singletons by default, supports optional private instances as well as named instances. It works using Go’s reflection package and is inherently limited in what it can do as opposed to a code-gen system with respect to private fields. This package provides symbolic links that alias the following Go import paths to github.com/facebookarchive/inject – github.com/facebookgo/inject Aliasing Go import paths via symbolic links or http redirects is fragile. If your Go code depends on this package, you should patch it to import directly github.com/facebookarchive/inject.

We can use yum or dnf to install compat-golang-github-facebookgo-inject-devel on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install compat-golang-github-facebookgo-inject-devel.

Install compat-golang-github-facebookgo-inject-devel on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install compat-golang-github-facebookgo-inject-devel using dnf by running the following command:

sudo dnf -y install compat-golang-github-facebookgo-inject-devel

Install compat-golang-github-facebookgo-inject-devel on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install compat-golang-github-facebookgo-inject-devel using yum by running the following command:

sudo yum -y install compat-golang-github-facebookgo-inject-devel

How To Uninstall compat-golang-github-facebookgo-inject-devel on Fedora 36

To uninstall only the compat-golang-github-facebookgo-inject-devel package we can use the following command:

sudo dnf remove compat-golang-github-facebookgo-inject-devel

compat-golang-github-facebookgo-inject-devel Package Contents on Fedora 36

/usr/share/gocode/src/github.com/facebookgo
/usr/share/gocode/src/github.com/facebookgo/inject

References

Summary

In this tutorial we learn how to install compat-golang-github-facebookgo-inject-devel on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).