Location return absolute path of the configs yml file
(rel string)
| 15 | |
| 16 | // Location return absolute path of the configs yml file |
| 17 | func Location(rel string) string { |
| 18 | if filepath.IsAbs(rel) { |
| 19 | return rel |
| 20 | } |
| 21 | |
| 22 | return filepath.Join(basePath, rel) |
| 23 | } |
| 24 | |
| 25 | func Path(rel string) string { |
| 26 | return Location(rel) |
no outgoing calls
no test coverage detected