Go Data Types - LearnHowToCode SarkariResult.com Interview Questions and Answers LearnHowToCodeOnline
Go Data Types

Go Data Types

Go Data Types

Variables can be of different types like int, float, struct, slice or it can be of the interface.
The general form for declaring a variable uses the keyword var:
Go Construct and Data Types
The Go source code is stored in .go file. The name of the file consists of lowercase letters. If the file name has several parts, it should be separated by underscore "_" .
Go file has a name or an identifier which is case sensitive like C.
For example: a, ax123, i etc.
The _ identifier is special. It is called blank identifier. It may be used in variable declarations.
It is like normal identifiers but its value is discarded, so it cannot be used anymore in the code.
It may happen that the variable, type, or function has no name and even enhance flexibility so it is called anonymous.
These are the 25 keywords for Go-code:
breakdefaultfuncinterfaceselect
casedefergomapstruct
chanelsegotopackageswitch
constfallthroughIfrangetype
continueforimportreturnvar
Programs consist of keywords, constants, variables, operators, types and functions.
The following delimiters are used in constructs such as parentheses ( ), brackets [ ] and braces { }.
The following punctuation characters . , ; : and ... are used.
appendboolbytecapclosecomplexcomplex64complex128uint16
copyfalsefloat32float64imagintint8int16uint32
int32int64iotalenmakenewnilpanicuint64
printprintlnrealrecoverstringtrueuintuint8Uintptr

About Mariano

I'm Ethan Mariano a software engineer by profession and reader/writter by passion.I have good understanding and knowledge of AngularJS, Database, javascript, web development, digital marketing and exploring other technologies related to Software development.

0 comments:

Featured post

Political Full Forms List

Acronym Full Form MLA Member of Legislative Assembly RSS Really Simple Syndication, Rashtriya Swayamsevak Sangh UNESCO United Nations E...

Powered by Blogger.