How To Install golang-github-chi-cors-devel on Fedora 36
Introduction
In this tutorial we learn how to install golang-github-chi-cors-devel
on Fedora 36.
What is golang-github-chi-cors-devel
go-chi/cors is a fork of github.com/rs/cors that provides a net/http compatible middleware for performing pref-light CORS checks on the server side. These headers are required for using the browser native Fetch API. This middleware is designed to be used as a top-level middleware on the chi router. Applying with within a r.Group() or using With() will not work without routes matching OPTIONS added. This package contains the source code needed for building packages that reference the following Go import paths – github.com/go-chi/cors
We can use yum
or dnf
to install golang-github-chi-cors-devel
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install golang-github-chi-cors-devel.
Install golang-github-chi-cors-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-chi-cors-devel
using dnf
by running the following command:
sudo dnf -y install golang-github-chi-cors-devel
Install golang-github-chi-cors-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-chi-cors-devel
using yum
by running the following command:
sudo yum -y install golang-github-chi-cors-devel
How To Uninstall golang-github-chi-cors-devel on Fedora 36
To uninstall only the golang-github-chi-cors-devel
package we can use the following command:
sudo dnf remove golang-github-chi-cors-devel
golang-github-chi-cors-devel Package Contents on Fedora 36
/usr/share/doc/golang-github-chi-cors-devel
/usr/share/doc/golang-github-chi-cors-devel/README.md
/usr/share/doc/golang-github-chi-cors-devel/_example
/usr/share/doc/golang-github-chi-cors-devel/_example/main.go
/usr/share/gocode/src/github.com
/usr/share/gocode/src/github.com/go-chi
/usr/share/gocode/src/github.com/go-chi/cors
/usr/share/gocode/src/github.com/go-chi/cors/.goipath
/usr/share/gocode/src/github.com/go-chi/cors/README.md
/usr/share/gocode/src/github.com/go-chi/cors/cors.go
/usr/share/gocode/src/github.com/go-chi/cors/cors_test.go
/usr/share/gocode/src/github.com/go-chi/cors/go.mod
/usr/share/gocode/src/github.com/go-chi/cors/utils.go
/usr/share/gocode/src/github.com/go-chi/cors/utils_test.go
/usr/share/licenses/golang-github-chi-cors-devel
/usr/share/licenses/golang-github-chi-cors-devel/LICENSE
References
Summary
In this tutorial we learn how to install golang-github-chi-cors-devel
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).