Check out example codes for "go packae unix time". It will help you in understanding the concepts better.

Code Example 1

package main

import (
	"fmt"
	"time"
)

func unixtime() {
	fmt.Println(time.Now().Unix())
}

Learn ReactJs, React Native from akashmittal.com