End determineSchemaType
(input string)
| 61 | return Inline, nil // Default to inline |
| 62 | } // End determineSchemaType |
| 63 | func isURL(input string) bool { // Check if input is URL |
| 64 | parsedURL, err := url.Parse(input) |
| 65 | if err != nil { |
| 66 | return false |
| 67 | } |
| 68 | // Check if the URL has a valid scheme and host |
| 69 | return parsedURL.Scheme != "" && parsedURL.Host != "" |
| 70 | } // End isURL |
| 71 | func isFilePath(input string) (bool, error) { // Check if input is file |
| 72 | _, err := os.Stat(input) // Get file info |
| 73 | if err != nil { |
no test coverage detected