package main import ( "fmt" "time" ) func main() { s := "2021-08-01T12:00:00Z" var t time.Time err := t.UnmarshalText([]byte(s)) if err != nil { panic(err) } fmt.Println(t) }This code example demonstrates how to unmarshal a time string in RFC3339 format into a time.Time value using the Time UnmarshalText method. The output will be "2021-08-01 12:00:00 +0000 UTC". The package library is "time".