Hierarchy

  • newFileFromUrl
  • 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")

    Parameters

    Returns filesystem.File

Generated using TypeDoc