WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Go - Basic Syntax


Go application includes numerous tokens.Token is likewise a key-word, an identifier, a regular, a string literal, or a image. For example, the subsequent Go assertion includes six tokens

fmt.Println("Hello, World Welookups!")
The man or woman tokens are
fmt
.
Println
(
   "Hello, World Welookups!"
)

Line Separator

Go application, the road separator key's a announcement terminator. Man or woman statements don't want a special separator like ";$ in C.

Example

fmt.Println("Hello, World Welookups!")
fmt.Println("I am in Go Programming!")

Comments

Comments are like helping texts in your Go software and they're left out by way of the compiler. Go remark start with /* and terminates with the characters */
/* my first software in Go */

Identifiers

Go identifier is a name used to become aware of a feature, variable,or every other person-described object.

Keywords

There are following listing the reserved phrases in Go.
destroy default func interface pick out
case defer Go map Struct
chan else Goto package deal Switch
const fallthrough if variety Type
hold for import go back Var