How To Install golang-github-pquerna-ffjson on Fedora 36
Introduction
In this tutorial we learn how to install golang-github-pquerna-ffjson
on Fedora 36.
What is golang-github-pquerna-ffjson
Ffjson generates static MarshalJSON and UnmarshalJSON functions for structures in Go. The generated functions reduce the reliance upon runtime reflection to do serialization and are generally 2 to 3 times faster. In cases where ffjson doesn’t understand a Type involved, it falls back to encoding/json, meaning it is a safe drop in replacement. By using ffjson your JSON serialization just gets faster with no additional code changes.
We can use yum
or dnf
to install golang-github-pquerna-ffjson
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install golang-github-pquerna-ffjson.
Install golang-github-pquerna-ffjson 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-pquerna-ffjson
using dnf
by running the following command:
sudo dnf -y install golang-github-pquerna-ffjson
Install golang-github-pquerna-ffjson 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-pquerna-ffjson
using yum
by running the following command:
sudo yum -y install golang-github-pquerna-ffjson
How To Uninstall golang-github-pquerna-ffjson on Fedora 36
To uninstall only the golang-github-pquerna-ffjson
package we can use the following command:
sudo dnf remove golang-github-pquerna-ffjson
golang-github-pquerna-ffjson Package Contents on Fedora 36
/usr/bin/ffjson
/usr/lib/.build-id
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/4238d1b47ecd72409ae9b2e11b2216ee953a14
/usr/share/doc/golang-github-pquerna-ffjson
/usr/share/doc/golang-github-pquerna-ffjson/README.md
/usr/share/licenses/golang-github-pquerna-ffjson
/usr/share/licenses/golang-github-pquerna-ffjson/LICENSE
/usr/share/licenses/golang-github-pquerna-ffjson/NOTICE
References
Summary
In this tutorial we learn how to install golang-github-pquerna-ffjson
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).