2
1
mirror of https://github.com/therootcompany/serviceman.git synced 2025-04-20 06:10:48 +00:00
2019-07-01 02:44:54 -06:00

19 lines
381 B
Go

// +build !windows
package file
// GetRemap returns a map's params with
// info required to load files directly
// from the hard drive when using prefix
// and base while debug mode is activaTed
func (f *File) GetRemap() string {
if f.Base == "" && f.Prefix == "" {
return ""
}
return `"` + f.Path + `": {
"prefix": "` + f.Prefix + `",
"base": "` + f.Base + `",
},`
}