How do I parse the following time in Golang?

Use the format string "2006-01-02 15:04:05 -0700" to parse the time in the question:

t, err := time.Parse("2006-01-02 15:04:05 -0700", "2021-10-07 12:44:22 +0530")

Run an example on Go's playground.