github.com/searKing/golang/go@v1.2.117/errors/multi_go1.20.go (about)

     1  // Copyright 2023 The searKing Author. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build go1.20
     6  
     7  package errors
     8  
     9  import "errors"
    10  
    11  // Deprecated: Use errors.Join instead since go1.20.
    12  func Multi(errs ...error) error {
    13  	return errors.Join(errs...)
    14  }