Go programing language

50 %
50 %
Information about Go programing language

Published on June 7, 2016

Author: ramakrishnakapa

Source: slideshare.net

1. Go - Overview Go originated as an experiment by Google engineers Robert Griesemer,Rob Pike, and Ken Thompson to design a new programming language that would resolve common criticisms of other languages while maintaining their positive characteristics

2.  Go compiles very quickly.  Go supports concurrency at the language level.  Functions are first class objects in Go.  Go has garbage collection.  Strings and maps are built into the language.

3.  Go compiles to machine code.  Go is very strongly typed.  Go is not object oriented in the traditional sense.

4.  A Go program basically consists of the following parts:  Package Declaration  Import Packages  Functions  Variables  Statements & Expressions  Comments  Let us look at a simple

5.  package main  import "fmt"  func main() {  /* This is my first sample program. */ fmt.Println("Hello") }  main defines the package name  lineimport "fmt" is a preprocessor command to include files in fmt package

6.  Lets look at how to save the source code in a file, and how to compile and run it. Following are the simple steps:  Open a text editor and add the above-mentioned code.  Save the file as hello.go  Open a command prompt and go to the directory where you saved the file.  Type go run hello.go and press enter to run your code.  If there are no errors in your code then you will be able to see "Hello World" printed on the screen.

7.  Performance is a key feature these days. Performance means a better experience for end users and fewer resources needed to power an application.  In testing for my types of use cases Go provides the elegant use of multiple cores, loads of features, and has faster performance than the other languages that are a good fit for the projects.  Sometimes significantly faster performance. For example, I've written tests in PHP and Go. Go can compile and execute faster than PHP does it's thing. I'll just put it this way… go compiles fast.

8.  Go is sometimes described as a ‘‘C-like  language,’’ or as ‘‘C for the 21st century.’’ From C, Go inherited its expression syntax, control-flow statements, basic data types, call-by-value parameter passing, pointers, and above all, C’s emphasis on programs that compile to efficient machine code and cooperate naturally wit h the abstractions of cur rent operating systems.

9.  Go is a compiled language. The Go toolchain converts a source program and the things it depends on into instructions in the native machine language of a computer.  These tools are accessed through a single command called go that has a number of sub commands.  The simplest of these sub command s is run, which compiles the source code fro m on e or more source files whose names end in

10.  The Go standard library has over 100 packages for common tasks like input and out put, sorting, and text manipulation.  For instance, the fmt package contains functions for printing formatted output and scanning input. Println is one of the basic out put functions in fmt; it prints one or more values, separated by spaces, wit h a newline character at the end so that the values appear as a single line of out put.

Add a comment

Related presentations

Related pages

The Go Programming Language

Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Read more

Go (programming language) - Wikipedia, the free encyclopedia

History. Go originated as an experiment by Google engineers Robert Griesemer, Rob Pike, and Ken Thompson to design a new programming language that would ...
Read more

Documentation - The Go Programming Language

The Go programming language is an open source project to make programmers more productive. Go is expressive, concise, clean, and efficient. Its concurrency ...
Read more

GitHub - golang/go: The Go programming language

README.md The Go Programming Language. Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Read more

The Go Programming Language Blog

Language and Locale Matching in Go. 9 February 2016. Introduction. Consider an application, such as a web site, with support for multiple languages in its ...
Read more

Go Resources

An Introduction to Programming in Go A short, concise introduction to computer programming using the language Go. Designed by Google, Go is a general ...
Read more

The Go Programming Language - YouTube

Videos about working with the Go Programming Language.
Read more

Go Programming Language

Newsletter on the Go Programming Language packed full of useful Golang tutorials and tips.
Read more

Google's Go: A New Programming Language That's Python ...

Big news for developers out there: Google has just announced the release of a new, open sourced programming language called Go. The company says ...
Read more

Go (Programmiersprache) – Wikipedia

Go ist eine kompilierbare Programmiersprache, die Nebenläufigkeit unterstützt und über eine automatische Speicherbereinigung verfügt. Entwickelt wurde ...
Read more