What are the advantages of GO?
Explain what is string types?
A string type represents the set of string values, and string values are sequence of bytes. Strings once created is not possible to change.View
Explain how you can do testing in GO?
It has a lightweight testing framework consists of the go test command and the testing package.
To write a test you have to create a file with a name ending in _testing. Go which contains functions named TestXXX with signature func (t *testing.T). The test framework runs each such function.View
Explain what is GOPATH environment variable?
The GOPATH environment variable determines the location of the workspace. It is the only environment variable that you have to set when developing Go code.View
Explain how to use custom packages in GO language?
If you are making your library a separate go get –table project and if your library is for internal use then you can code like this
. . .
Now, in main.go you could import myprojec/mylib.View
Explain workspace in GO?
Inside a workspace GO code must be kept. A workspace is a directory hierarchy with three directories at its root.
Explain packages in Go program?
Every GO program is made up of packages. The program starts running in package main. This program is using the packages with import paths “fmt” and “math/rand”.View
Explain what is string literals?
A string literals represents a string constant obtained from concatenating a sequence of characters.
There are two forms,
What is syntax like in GO?
Syntax in GO is specified using Extended Backus-Naur Form (EBNF)
Explain what is GO?
GO is an open source programming language which makes it easy to build simple, reliable and efficient software. Programs are constructed from packages, whose properties allow efficient management of dependencies.View
© 2017 QuizBucket.org