go-watchdog/vendor/github.com/UnnoTed/fileb0x/file/methods.go

19 lines
381 B
Go
Raw Normal View History

2019-06-25 01:57:21 +00:00
// +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 + `",
},`
}