537fa331ba98486616949d79e83121832543c5d6
In many cases fmt.Errorf is good enough, but since error is an interface, you can use arbitrary data structures as error values, to allow callers to inspect the details of the error.
Minio Client
mc - Minio Client for S3 Compatible Object Storage released under Apache license v2.
Install
# go get github.com/minio-io/mc
Usage
Commands
NAME:
mc - Minio Client for S3 Compatible Object Storage
USAGE:
mc [global options] command [command options] [arguments...]
VERSION:
0.1.0
AUTHOR:
Minio.io
COMMANDS:
cp copy objects
ls get list of objects
mb makes a bucket
config Generate configuration "/home/harsha/.minio/mc/config.json" file.
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--debug enable HTTP tracing
--quiet, -q disable chatty output, such as the progress bar
--get-bash-completion Generate bash completion "/home/harsha/.minio/mc/mc.bash_completion" file.
--help, -h show help
--generate-bash-completion
--version, -v print the version
Contribute
Enable bash completion
To generate bash completion for mc all you have to do is
$ mc --get-bash-completion
Configuration written to /home/user/.minio/mc/mc.bash_completion
$ source ${HOME}/.minio/mc/mc.bash_completion
$ echo 'source ${HOME}/.minio/mc/mc.bash_completion' >> ${HOME}/.bashrc
$ mc <TAB><TAB>
config cp h help ls mb sync
Description
Imported copy of minio/mc (AGPL-3.0, archived upstream) plus the vezha build recipe
38 MiB
Languages
Shell
85.3%
Dockerfile
11.1%
Go Template
3.6%