Go Programming Introduction and Installation

Go Language Introduction

Go was created by Robert Griesemer, Rob Pike, and Ken Thompson at Google in 2007. Go is an opensource programming language and can be used to make simple, reliable and efficient software easily.

How to install Go in fedora 26 ?

$  sudo dnf install golang
Output:
Failed to synchronize cache for repo 'mstuchli-Python3.5', disabling.
Last metadata expiration check: 0:15:32 ago on Tue Jul 24 16:31:20 2018.
Dependencies resolved.
===================================================================================================================================================================================================================
 Package                                         	Arch                                        	Version                                            	Repository                                    	Size
===================================================================================================================================================================================================================
Installing:
 golang                                          	x86_64                                      	1.6.4-3.fc24                                       	updates                                      	1.1 M
 golang-bin                                      	x86_64                                      	1.6.4-3.fc24                                       	updates                                       	43 M
 golang-src                                      	noarch                                      	1.6.4-3.fc24                                       	updates                                      	3.9 M

Transaction Summary
===================================================================================================================================================================================================================
Install  3 Packages

Total download size: 48 M
Installed size: 250 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): golang-1.6.4-3.fc24.x86_64.rpm                                                                                                                                          	103 kB/s | 1.1 MB 	00:11    
(2/3): golang-src-1.6.4-3.fc24.noarch.rpm                                                                                                                                      	114 kB/s | 3.9 MB 	00:35    
(3/3): golang-bin-1.6.4-3.fc24.x86_64.rpm                                                                                                                                      	167 kB/s |  43 MB 	04:23    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                          	185 kB/s |  48 MB 	04:25	 
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Installing  : golang-src-1.6.4-3.fc24.noarch                                                                                                                                                             	1/3
  Installing  : golang-bin-1.6.4-3.fc24.x86_64                                                                                                                                                             	2/3
  Installing  : golang-1.6.4-3.fc24.x86_64                                                                                                                                                                 	3/3
  Verifying   : golang-1.6.4-3.fc24.x86_64                                                                                                                                                                 	1/3
  Verifying   : golang-bin-1.6.4-3.fc24.x86_64                                                                                                                                                             	2/3
  Verifying   : golang-src-1.6.4-3.fc24.noarch                                                                                                                                                             	3/3

Installed:
  golang.x86_64 1.6.4-3.fc24                                     	golang-bin.x86_64 1.6.4-3.fc24                                     	golang-src.noarch 1.6.4-3.fc24                                   	 

Complete!

How to uninstall Go in fedora 26 ?

$ sudo yum remove golang
Output:
Redirecting to '/usr/bin/dnf remove golang' (see 'man yum2dnf')

Dependencies resolved.
===================================================================================================================================================================================================================
 Package                                         	Arch                                        	Version                                           	Repository                                     	Size
===================================================================================================================================================================================================================
Removing:
 golang                                          	x86_64                                      	1.6.4-3.fc24                                      	@updates                                       	11 M
 golang-bin                                      	x86_64                                      	1.6.4-3.fc24                                      	@updates                                      	220 M
 golang-src                                      	noarch                                      	1.6.4-3.fc24                                      	@updates                                       	18 M

Transaction Summary
===================================================================================================================================================================================================================
Remove  3 Packages

Installed size: 250 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Erasing 	: golang-bin-1.6.4-3.fc24.x86_64                                                                                                                                                             	1/3
warning: file /usr/bin/gofmt: remove failed: No such file or directory
warning: file /usr/bin/go: remove failed: No such file or directory
  Erasing 	: golang-1.6.4-3.fc24.x86_64                                                                                                                                                                 	2/3
  Erasing 	: golang-src-1.6.4-3.fc24.noarch                                                                                                                                                             	3/3
  Verifying   : golang-1.6.4-3.fc24.x86_64                                                                                                                                                                 	1/3
  Verifying   : golang-bin-1.6.4-3.fc24.x86_64                                                                                                                                                             	2/3
  Verifying   : golang-src-1.6.4-3.fc24.noarch                                                                                                                                                             	3/3

Removed:
  golang.x86_64 1.6.4-3.fc24                                     	golang-bin.x86_64 1.6.4-3.fc24                                     	golang-src.noarch 1.6.4-3.fc24                                   	 

Complete!

Java Programming Examples

GCD and Rational Number Java Program

Java Queue Program using exception

Java Stack Program using exception

Addition of three integers java program

Biggest of three integers java program

Fibonacci numbers java program

Arithmetic Operations Menu java program

Second Smallest Element In Array Java Program

Transpose Of A Matrix Java Program

Java Program to Display triangle of stars (*)

Java Programming Prints Product Tables

Java Program to Display triangle of numbers

Java Programming Gets Current Date

Java Programming Finds Character Vowel or Consonent

Java Programming HCF and LCM Computation

Java Programming Sum of Command Line Integer Arguments

Java Programming Multiplication of Command Line Integer Arguments

Java Programming Multiplication of Command Line Floating Point Numeric Arguments

Java Programming String Contains or Not

Java Programming Gets Grade Description using Switch

Java Programming CSV File Reader

Java Programming Character Frequency Count in String using for each

Java Programming Finds Min from Integer Array by Passing Array to Method

Java Programming Linear Search

Java Programming Binary Search

Java Programming Ternary Search

Java Programming Generates Range of Numbers

Java Programming Generates Range of Characters

Java Programming Computes Square Root Value

Java Programming Checks Number is Positive or Negative

Java Programming Checks Number is Odd or Even

Java Programming Computes Plot Area

Java Programming Convert Number of Days into Years

Java Programming Checks a Year is Leap Year, Century Year or Not

Java Programming Checks a Character is Digit, Letter or neither digit nor letter

Java Programming Checks a Number is Palindrome or not

Java Programming Sum of Two Matrix

Java Programming Power Computation

Java Programming Checks Number is an Armstrong Number or not

Java Programming Temperature Unit Conversions

Java Programming Generates Random Numbers in Specified Range

Java Programming Computes Sum of Digits and Product of Digits

Java Programming Computes Reverse Number

Java Programming Computes Factorial Value

Java Programming Checks Prime Number or not

Java Programming Computes Harmonic Series

Java Programming Generates Floyd's Triangle

Java Programming Reverses String

Java Programming Checks Palindrome String or not

Java Programming Opens Notepad

Java Programming Searches String using RegEx Pattern

Java Programming Searches Word in String

Java Programming Gets System Environment Variables

Java Programming Gets IP Address of Server Name

Java Programming Arrays Sort and Reverse using sort method

Java Programming Bubble Sorting

Java Programming Selection Sorting

Java Programming Insertion Sorting

Java Programming Merge Sorting

Java Programming Quick Sorting

Java Programming Counting Sort

Java Programming Radix Sorting

Java Programming Sorting Array of Strings

Java Programming String Characters Sorting

Java Programming Sum of First N Numbers

Java Programming Product of First N Numbers

Privacy Policy  |  Copyright@2017 - All Rights Reserved.  |  Contact us   |  Report website issues in Github   |  Facebook page   |  Google+ page

Free online programming tutorials

Email Facebook Google LinkedIn Twitter
^