How To Install golang-github-facebookarchive-inject-devel on Fedora 36
Introduction
In this tutorial we learn how to install golang-github-facebookarchive-inject-devel
on Fedora 36.
What is golang-github-facebookarchive-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 contains the source code needed for building packages that reference the following Go import paths – github.com/facebookarchive/inject
We can use yum
or dnf
to install golang-github-facebookarchive-inject-devel
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install golang-github-facebookarchive-inject-devel.
Install golang-github-facebookarchive-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 golang-github-facebookarchive-inject-devel
using dnf
by running the following command:
sudo dnf -y install golang-github-facebookarchive-inject-devel
Install golang-github-facebookarchive-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 golang-github-facebookarchive-inject-devel
using yum
by running the following command:
sudo yum -y install golang-github-facebookarchive-inject-devel
How To Uninstall golang-github-facebookarchive-inject-devel on Fedora 36
To uninstall only the golang-github-facebookarchive-inject-devel
package we can use the following command:
sudo dnf remove golang-github-facebookarchive-inject-devel
golang-github-facebookarchive-inject-devel Package Contents on Fedora 36
/usr/share/doc/golang-github-facebookarchive-inject-devel
/usr/share/doc/golang-github-facebookarchive-inject-devel/readme.md
/usr/share/gocode/src/github.com
/usr/share/gocode/src/github.com/facebookarchive
/usr/share/gocode/src/github.com/facebookarchive/inject
/usr/share/gocode/src/github.com/facebookarchive/inject/.goipath
/usr/share/gocode/src/github.com/facebookarchive/inject/common_test.go
/usr/share/gocode/src/github.com/facebookarchive/inject/example_test.go
/usr/share/gocode/src/github.com/facebookarchive/inject/inject.go
/usr/share/gocode/src/github.com/facebookarchive/inject/inject_test.go
/usr/share/gocode/src/github.com/facebookarchive/inject/injecttesta
/usr/share/gocode/src/github.com/facebookarchive/inject/injecttesta/a.go
/usr/share/gocode/src/github.com/facebookarchive/inject/injecttestb
/usr/share/gocode/src/github.com/facebookarchive/inject/injecttestb/b.go
/usr/share/gocode/src/github.com/facebookarchive/inject/readme.md
/usr/share/licenses/golang-github-facebookarchive-inject-devel
/usr/share/licenses/golang-github-facebookarchive-inject-devel/license
References
Summary
In this tutorial we learn how to install golang-github-facebookarchive-inject-devel
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).