(arg interface{}, t *time.Time)
| 107 | } |
| 108 | |
| 109 | func parseUnix(arg interface{}, t *time.Time) bool { |
| 110 | switch a := arg.(type) { |
| 111 | case float64: |
| 112 | *t = time.Unix(int64(a), 0) |
| 113 | return true |
| 114 | case int64: |
| 115 | *t = time.Unix(a, 0) |
| 116 | return true |
| 117 | } |
| 118 | return false |
| 119 | } |
| 120 | |
| 121 | func parseRFC(arg interface{}, t *time.Time) bool { |
| 122 | if s, ok := arg.(string); ok { |
no outgoing calls
no test coverage detected
searching dependent graphs…