(_ context.Context, s string)
| 2409 | } |
| 2410 | |
| 2411 | func (c customLoader) Load(_ context.Context, s string) (string, error) { |
| 2412 | path := c.path(s) |
| 2413 | _, err := os.Stat(path) |
| 2414 | if err != nil { |
| 2415 | return "", err |
| 2416 | } |
| 2417 | return filepath.Abs(path) |
| 2418 | } |
| 2419 | |
| 2420 | func (c customLoader) Dir(s string) string { |
| 2421 | return filepath.Dir(c.path(s)) |