Struct: aws.MultiCloser

import "../ibm-cos-sdk-go/aws"

Overview

Close closes all of the io.Closers making up the MultiClosers. Any errors that occur while closing will be returned in the order they occur.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Method Summary collapse

Method Details

func (m MultiCloser) Close() error



216
217
218
219
220
221
222
223
224
225
226
227
228
229
// File 'aws/types.go', line 216

func (m MultiCloser) Close() error { var errs errors for _, c := range m { err := c.Close() if err != nil { errs = append(errs, err) } } if len(errs) != 0 { return errs } return nil }