Nice error handling in Golang

Member

jerald_rippin

by jerald_rippin , in category: Golang , 2 months ago

Nice error handling in Golang 不


1
2
3
4
5
6
7
8
9
func (c *Client) DeleteFile(filename string) {
	_, err := s3.New(c.session).DeleteObject(&s3.DeleteObjectInput{
		Bucket: aws.String(c.bucket),
		Key:    aws.String(filename),
	})
	if err != nil {
		return
	}
}


Facebook Twitter LinkedIn Telegram Whatsapp Pocket

no answers