t, err := time.Parse(time.RFC822Z, "Mon, 22 Jan 2018 19:21:00 +0300")
parsing time "Mon, 22 Jan 2018 19:21:00 +0300" as "02 Jan 06 15:04 -0700": cannot parse "Mon, 22 Jan 2018 19:21:00 +0300" as "02"
package main
import (
"fmt"
"log"
"time"
)
func main() {
x_time := "Mon, 22 Jan 2018 19:21:00 +0300"
t, err := time.Parse("Mon, 02 Jan 2006 15:04:05 -0700", x_time)
if err != nil {
log.Fatal(err)
}
fmt.Println(t)
}