1
0
mirror of https://github.com/minio/minio.git synced 2025-01-19 10:43:16 -05:00
Harshavardhana 4af89543cf Update minio-go dependencies to latest 5.0.0 release ()
With following changes

- Add SSE and refactor encryption API () <Andreas Auernhammer>
- add copyObject test changing metadata and preserving etag () <Harshavardhana>
- Add SSE-C tests for multipart, copy, get range operations () <Harshavardhana>
- Removing conditional check for notificationInfoCh in api-notication () <Matthew Magaldi>
- Honor prefix parameter in ListBucketPolicies API () <kannappanr>
- test for empty objects uploaded with SSE-C headers () <kannappanr>
- Encryption headers should also be set during initMultipart () <Harshavardhana>
- Add support for Content-Language metadata header () <kannappanr>
- Fix check for duplicate notification configuration entries () <kannappanr>
- allow OS to cleanup sockets in TIME_WAIT () <Harshavardhana>
- Sign V2: Fix signature calculation in virtual host style () <A. Elleuch>
- bucket policy: Support json string in Principal field () <A. Elleuch>
- Fix copyobject failure for empty files () <kannappanr>
- Add new constructor NewWithOptions to SDK () <poornas>
- Support redirect headers to sign again with new Host header. () <Harshavardhana>
- Fail in PutObject if invalid user metadata is passed <Harshavadhana>
- PutObjectOptions Header: Don't include invalid header <Isaac Hess>
- increase max retry count to 10 () <poornas>
- Add new regions for Paris and China west. () <Harshavardhana>
- fix s3signer to use req.Host header () <Bartłomiej Nogaś>
2018-03-14 19:38:29 +05:30

15 lines
681 B
Markdown

# go-homedir
This is a Go library for detecting the user's home directory without
the use of cgo, so the library can be used in cross-compilation environments.
Usage is incredibly simple, just call `homedir.Dir()` to get the home directory
for a user, and `homedir.Expand()` to expand the `~` in a path to the home
directory.
**Why not just use `os/user`?** The built-in `os/user` package requires
cgo on Darwin systems. This means that any Go code that uses that package
cannot cross compile. But 99% of the time the use for `os/user` is just to
retrieve the home directory, which we can do for the current user without
cgo. This library does that, enabling cross-compilation.