(pathParts ...string)
| 696 | } |
| 697 | |
| 698 | func FilePath(pathParts ...string) string { |
| 699 | if len(pathParts) == 1 { |
| 700 | return filepath.FromSlash(pathParts[0]) |
| 701 | } |
| 702 | return filepath.FromSlash(strings.Join(pathParts, ``)) |
| 703 | } |
| 704 | |
| 705 | func ReadFile(path string) ([]byte, error) { |
| 706 | return os.ReadFile(filepath.FromSlash(path)) |
no outgoing calls