Exists checks if a resource file exists in embedded resources
(path string)
| 76 | |
| 77 | // Exists checks if a resource file exists in embedded resources |
| 78 | func Exists(path string) bool { |
| 79 | fullPath := filepath.Join("files", path) |
| 80 | _, err := fs.Stat(EmbeddedResources, fullPath) |
| 81 | return err == nil |
| 82 | } |
no outgoing calls
no test coverage detected