You first need Go installed (version 1.18+ is required), then you can use the below Go command to install Gin.