Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the Elixir language on examples in README.md #284

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ end
The vast majority of operations here represent a single operation on S3.

#### Examples
```
```elixir
S3.list_objects("my-bucket") |> ExAws.request! #=> %{body: [list, of, objects]}
S3.list_objects("my-bucket") |> ExAws.stream! |> Enum.to_list #=> [list, of, objects]

Expand All @@ -49,7 +49,7 @@ There are also some operations which operate at a higher level to make it easier
to download and upload very large files.

Multipart uploads
```
```elixir
"path/to/big/file"
|> S3.Upload.stream_file
|> S3.upload("my-bucket", "path/on/s3")
Expand All @@ -58,7 +58,7 @@ Multipart uploads
See `ExAws.S3.upload/4` for options

Download large file to disk
```
```elixir
S3.download_file("my-bucket", "path/on/s3", "path/to/dest/file")
|> ExAws.request #=> {:ok, :done}
```
Expand All @@ -69,7 +69,7 @@ Task.async_stream makes some high level flows so easy you don't need explicit Ex

For example, here is how to concurrently upload many files.

```
```elixir
upload_file = fn {src_path, dest_path} ->
S3.put_object("my_bucket", dest_path, File.read!(src_path))
|> ExAws.request!
Expand All @@ -84,7 +84,7 @@ paths

### Bucket as host functionality
#### Examples
```
```elixir
opts = [virtual_host: true, bucket_as_host: true]

ExAws.Config.new(:s3)
Expand Down