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

Code Example 1

package main

import fmt

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

Learn ReactJs, React Native from akashmittal.com