You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: errors.go
    path of file: ./repos/sealer/vendor/github.com/containerd/stargz-snapshotter/estargz/errorutil
    
    the code of the file until where you have to start completion: /*
   Copyright The containerd Authors.

   Licensed under the Apache License, Version 2.0 (the "License");
   you 
    
func Aggregate(errs []error) error {
	switch len(errs) {
	case 0:
		return nil
	case 1:
		return errs[0]
	default:
		points := make([]string, len(errs)+1)
		points[0] = fmt.Sprintf("%d error(s) occurred:", len(errs))
		for i, err := range errs {
			points[i+1] = fmt.Sprintf("* %s", err)
		}
		return errors.New(strings.Join(points, "\n\t"))
	}
}