Go Language example

Hello Program:
package main
import fmt “fmt”
func main()
{
fmt.Printf(”Hello, world; or Καλημέρα κόσμε; or こんにちは 世界\n”);
}
package – package statement imports all the packages for using their facilities.
import fmt  “fmt” -  imports the package fmt for implementing formatted I/O.
func  – Functions are defined by using the keyword func .
main – main is the starting point of the program.
Frm.Printf() – [...]


Hello Program:

package main

import fmt “fmt”

func main()

{

fmt.Printf(”Hello, world; or Καλημέρα κόσμε; or こんにちは 世界\n”);

}

package – package statement imports all the packages for using their facilities.

import fmt  “fmt” -  imports the package fmt for implementing formatted I/O.

func  – Functions are defined by using the keyword func .

main – main is the starting point of the program.

Frm.Printf() – Displays the strings.

String constants can contain Unicode characters, encoded in UTF-8.

No related posts.

Leave Your Response

* Name, Email, Comment are Required