package main import "fmt" type bucketNotExistError struct { bucket string } func (e bucketNotExistError) Error() string { return fmt.Sprintf("bucket %s does not exist", e.bucket) }