Check out example codes for "hello world in golang". 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