(v string)
| 93 | const rfc = time.RFC3339Nano |
| 94 | |
| 95 | func parseTime(v string) time.Time { |
| 96 | t, _ := time.Parse(rfc, v) |
| 97 | return t |
| 98 | } |
| 99 | |
| 100 | // validateName rejects empty names and names containing path separators. |
| 101 | func validateName(name string) error { |
no outgoing calls
no test coverage detected