// doMakeBucket - wrapper around MakeBucket() API func doMakeBucket(clnt client.Client) (string, error) { err := clnt.MakeBucket() if err != nil { msg := fmt.Sprintf("Failed to create bucket for URL ‘%s’", clnt.URL().String()) return msg, iodine.New(err, nil) } return "Bucket created successfully : " + clnt.URL().String(), nil }