19 lines
381 B
Go
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 + `",
|
||
|
},`
|
||
|
}
|