----------------------------------------------------------------------------- Utils helper function to make config creation independent of root dir
(path, root string)
| 1199 | |
| 1200 | // helper function to make config creation independent of root dir |
| 1201 | func rootify(path, root string) string { |
| 1202 | if filepath.IsAbs(path) { |
| 1203 | return path |
| 1204 | } |
| 1205 | return filepath.Join(root, path) |
| 1206 | } |
| 1207 | |
| 1208 | //----------------------------------------------------------------------------- |
| 1209 | // Moniker |
no outgoing calls