You should rewrite your code to handle errors when they occur. The default execution path should be error free. So, after time.LoadLocation
check if there is an error:
utc := time.Now().UTC()
local := utc
location, err := time.LoadLocation("Asia/Delhi")
if err != nil {
// execution would stop, you could also print the error and continue with default values
log.Fatal(err)
}
local = local.In(location)
log.Println("UTC", utc.Format("15:04"), local.Location(), local.Format("15:04"))
Now you'll get something like this error message:
cannot find Asia/Delhi in zip file /usr/local/go/lib/time/zoneinfo.zip
panic: time: missing Location in call to Time.In
You have to find a valid time zome for your location, as others said check Wikipedia for time zones