How To Install golang-github-gopherjs-jsbuiltin-dev on Ubuntu 22.04

In this tutorial we learn how to install golang-github-gopherjs-jsbuiltin-dev on Ubuntu 22.04. golang-github-gopherjs-jsbuiltin-dev is GopherJS bindings for built-in JavaScript functions

Introduction

In this tutorial we learn how to install golang-github-gopherjs-jsbuiltin-dev on Ubuntu 22.04.

What is golang-github-gopherjs-jsbuiltin-dev

golang-github-gopherjs-jsbuiltin-dev is:

JavaScript has a small number of built-in functions to handle some common day-to-day tasks. This package providers wrappers around some of these functions for use in GopherJS.

It is worth noting that in many cases, using Go’s equivalent functionality (such as that found in the net/url package) may be preferable to using this package, and will be a necessity any time you wish to share functionality between front-end and back-end code.

There are three methods to install golang-github-gopherjs-jsbuiltin-dev on Ubuntu 22.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install golang-github-gopherjs-jsbuiltin-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install golang-github-gopherjs-jsbuiltin-dev using apt-get by running the following command:

sudo apt-get -y install golang-github-gopherjs-jsbuiltin-dev

Install golang-github-gopherjs-jsbuiltin-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install golang-github-gopherjs-jsbuiltin-dev using apt by running the following command:

sudo apt -y install golang-github-gopherjs-jsbuiltin-dev

Install golang-github-gopherjs-jsbuiltin-dev Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install golang-github-gopherjs-jsbuiltin-dev using aptitude by running the following command:

sudo aptitude -y install golang-github-gopherjs-jsbuiltin-dev

How To Uninstall golang-github-gopherjs-jsbuiltin-dev on Ubuntu 22.04

To uninstall only the golang-github-gopherjs-jsbuiltin-dev package we can use the following command:

sudo apt-get remove golang-github-gopherjs-jsbuiltin-dev

Uninstall golang-github-gopherjs-jsbuiltin-dev And Its Dependencies

To uninstall golang-github-gopherjs-jsbuiltin-dev and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove golang-github-gopherjs-jsbuiltin-dev

Remove golang-github-gopherjs-jsbuiltin-dev Configurations and Data

To remove golang-github-gopherjs-jsbuiltin-dev configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge golang-github-gopherjs-jsbuiltin-dev

Remove golang-github-gopherjs-jsbuiltin-dev configuration, data, and all of its dependencies

We can use the following command to remove golang-github-gopherjs-jsbuiltin-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge golang-github-gopherjs-jsbuiltin-dev

References

Summary

In this tutorial we learn how to install golang-github-gopherjs-jsbuiltin-dev package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.