(s *string)
| 877 | } |
| 878 | |
| 879 | func parseExpireAt(s *string) *time.Time { |
| 880 | if s == nil || *s == "" { |
| 881 | return nil |
| 882 | } |
| 883 | for _, layout := range []string{time.RFC3339, "2006-01-02"} { |
| 884 | if t, err := time.Parse(layout, *s); err == nil { |
| 885 | u := t.UTC() |
| 886 | return &u |
| 887 | } |
| 888 | } |
| 889 | return nil |
| 890 | } |
no outgoing calls
no test coverage detected