How To Install golang-github-go-playground-validator-v10-dev on Kali Linux
Introduction
In this tutorial we learn how to install golang-github-go-playground-validator-v10-dev
on Kali Linux.
What is golang-github-go-playground-validator-v10-dev
golang-github-go-playground-validator-v10-dev is:
The validator package implements value validations for structs and individual fields based on tags.
It has the following unique features:
- Cross Field and Cross Struct validation by using validation tags or custom validators.
- Slice, Array and Map diving, which allows any or all levels of a multidimensional field to be validated.
- Ability to dive into both map keys and values for validation.
- Handles type interface by determining its underlying type prior to validation.
- Handles custom field types such as the SQL driver’s Valuer.
- Alias validation tags, which allows for mapping of several validations to a single tag for easier definition of validations on structs.
- Extraction of custom defined Field Name, allowing to specify extracting the JSON name while validating and making it available in the resulting FieldError.
- Customizable i18n-aware error messages.
There are three methods to install golang-github-go-playground-validator-v10-dev
on Kali Linux. 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-go-playground-validator-v10-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-go-playground-validator-v10-dev
using apt-get
by running the following command:
sudo apt-get -y install golang-github-go-playground-validator-v10-dev
Install golang-github-go-playground-validator-v10-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install golang-github-go-playground-validator-v10-dev
using apt
by running the following command:
sudo apt -y install golang-github-go-playground-validator-v10-dev
Install golang-github-go-playground-validator-v10-dev Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install golang-github-go-playground-validator-v10-dev
using aptitude
by running the following command:
sudo aptitude -y install golang-github-go-playground-validator-v10-dev
How To Uninstall golang-github-go-playground-validator-v10-dev on Kali Linux
To uninstall only the golang-github-go-playground-validator-v10-dev
package we can use the following command:
sudo apt-get remove golang-github-go-playground-validator-v10-dev
Uninstall golang-github-go-playground-validator-v10-dev And Its Dependencies
To uninstall golang-github-go-playground-validator-v10-dev
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove golang-github-go-playground-validator-v10-dev
Remove golang-github-go-playground-validator-v10-dev Configurations and Data
To remove golang-github-go-playground-validator-v10-dev
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge golang-github-go-playground-validator-v10-dev
Remove golang-github-go-playground-validator-v10-dev configuration, data, and all of its dependencies
We can use the following command to remove golang-github-go-playground-validator-v10-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge golang-github-go-playground-validator-v10-dev
Dependencies
golang-github-go-playground-validator-v10-dev have the following dependencies:
- golang-github-go-playground-assert-v2-dev
- golang-github-go-playground-locales-dev
- golang-github-go-playground-universal-translator-dev
- golang-github-leodido-go-urn-dev
- golang-golang-x-crypto-dev
References
Summary
In this tutorial we learn how to install golang-github-go-playground-validator-v10-dev
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.