Go, Golang, Golnguage, what is go language, what is go, History of go, Founders of Go, Why Go is invented ?, Why Go?, Who are using go today?, What will you see in Go?, What will you not see in Go?, Structure of Go Programs, Features of Go, Drawbacks of Go
3. Introduction
● Go is a programming language which is developed by Google in 2007. it
was introduced to the public in 2009.
● It is developed with the vision of high performance and fast development.
● Go is modern, fast and comes with a powerful standard library.
● Go is an open source programming language that makes it easy to build
simple, reliable, and efficient software.
3
● Their goal was to create a language, loosely based
on the syntax of the C programming language,
which would eliminate the "extraneous garbage" of
languages such as C++.
6. Why Go is invented ?
6
Go is a programming language
designed by Google to help solve
Google's problems.
And Google has
big problems!
7. Which (big) problems?
7
• Hardware is big and the software is big
• There are many millions of lines of software
• Servers mostly in C++ and lots of Java and Python
• Thousands of engineers work on the code
• All this software runs on zillions of machines.
“In short, development at Google is big, can be
slow, and is often clumsy. But it is effective.”
8. Why to learn Go?
• Eliminate slowness .
• Secure and easy to Maintain.
• Good Hardware interaction.
• Go focuses on the speed of production.
• It was designed by and for people who write, read, debug and
maintain large software systems.
“Go's purpose is not to do research on
programming language design. Go's purpose is
to make its designers programming lives
better.”
10. What will you see in Go?
● Compiled
● Garbage-collection
● Own runtime
● Simple syntax and Great standard library
● Cross-platform
● Closures
● Object Oriented (without inheritance)
● Statically typed
● Concurrent
● values Pointers
10
11. What will you not see in Go?
● Exception handling
● Inheritance
● Generics
● Assert
● Method overload
11
Have not been implemented in favor
of efficiency.
12. Structure of Go Programs
The basic structure of a Go
programs consists of following
parts:-
● Package Declaration
● Import Packages
● Variables
● Statements and Expressions
● Functions
● Comments
12
// First program of golang
package main
import "fmt"
func main()
{
fmt.Println("Hello, World")
}
Output: Hello, World
13. Features of Go
13
• Compiled
• Garbage collection
• Safe
• C-inspired syntax
• Multi-paradigm
• Standard library
• Simplified documentation
• Concurrent
• Fast
• Lightweight
• Open source by nature
• Comes with built-in testing tool
• Compiled directly to machine code
• Go-routines
14. Drawbacks of Go
14
• A young language, so it is still developing.
• Absence of manual memory management
• Too simple
• Error handling isn’t perfect
• Runtime safety is not that good
• Difficult Community