NewFileFromUrl creates a new File from the provided url by downloading the resource and load it as BytesReader.
Example
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) defer cancel() file, err := filesystem.NewFileFromUrl(ctx, "https://example.com/image.png") Copy
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) defer cancel() file, err := filesystem.NewFileFromUrl(ctx, "https://example.com/image.png")
Generated using TypeDoc
NewFileFromUrl creates a new File from the provided url by downloading the resource and load it as BytesReader.
Example