(s string)
| 61 | } |
| 62 | |
| 63 | func ParseTimestamp(s string) (time.Time, error) { |
| 64 | timestamp, err := strconv.Atoi(s) |
| 65 | if err != nil { |
| 66 | return time.Time{}, err |
| 67 | } |
| 68 | |
| 69 | return time.Unix(int64(timestamp), 0), nil |
| 70 | } |
| 71 | |
| 72 | // mergeConfig is a helper to easily support RepoConfig.AnyConfig() |
| 73 | // from two separate local and global Config |
no outgoing calls
no test coverage detected