func Load(configFileName string) Config {
	var config Config

	configFile, err := os.Open(configFileName)
	if err != nil {
		log.Fatal(err)
	}
	defer configFile.Close()

	err = json.NewDecoder(configFile).Decode(&config)
	if err != nil {
		log.Fatal(err)
	}
	// get the current time stamp
	sCurDttmStmp := time.Now().Format("20060102150405")
	// set the UUID
	config.UUID = sCurDttmStmp
	// for different format please refer to the below URL
	// https://medium.com/@Martynas/formatting-date-and-time-in-golang-5816112bf098
	// set the run date time
	config.RunDttmStmp = time.Now().Format("2006-Jan-02 15:04:05.000")

	return config
}
// Load - function to load the configuration from the file and gets a
// Config object
function to load the configuration from the file and gets a
Config object
// Load - function to load the configuration from the file and gets a // Config object
func Load(configFileName string) Config {
	var config Config
	configFile, err := os.Open(configFileName)
	if err != nil {
		log.Fatal(err)
	}
	defer configFile.Close()
	err = json.NewDecoder(configFile).Decode(&config)
	if err != nil {
		log.Fatal(err)
	}
	sCurDttmStmp := time.Now().Format("20060102150405")
	config.UUID = sCurDttmStmp
	config.RunDttmStmp = time.Now().Format("2006-Jan-02 15:04:05.000")
	return config
}
func Load ( configFileName string ) Config { var config Config configFile , err := os . Open ( configFileName ) if err != nil { log . Fatal ( err ) } defer configFile . Close ( ) err = json . NewDecoder ( configFile ) . Decode ( & config ) if err != nil { log . Fatal ( err ) } sCurDttmStmp := time . Now ( ) . Format ( " " ) config . UUID = sCurDttmStmp config . RunDttmStmp = time . Now ( ) . Format ( " " ) return config }
function to load the configuration from the file and gets a
Config object
function to load the configuration from the file and gets a Config object
// get the current time stamp // set the UUID // for different format please refer to the below URL // https://medium.com/@Martynas/formatting-date-and-time-in-golang-5816112bf098 // set the run date time