Check out example codes for "go hello world". It will help you in understanding the concepts better.

Code Example 1

package main

import "fmt"

func main(){
	fmt.Println("hello world")
}

Code Example 2

package main

import fmt

func main() {
	fmt.Println("hello, world!")
}

Learn ReactJs, React Native from akashmittal.com