()
| 25 | type ConfigType byte |
| 26 | |
| 27 | func (c ConfigType) String() string { |
| 28 | switch c { |
| 29 | case DefaultConfig: |
| 30 | return "Default" |
| 31 | case EnvConfig: |
| 32 | return "Env" |
| 33 | case FileConfig: |
| 34 | return "File" |
| 35 | default: |
| 36 | return "Unknown" |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | // LookupConfigPath returns config file path following below order |
| 41 | // 1. env path |
no outgoing calls
no test coverage detected