github.com/blend/go-sdk@v1.20220411.3/env/merge.go (about)

     1  /*
     2  
     3  Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file.
     5  
     6  */
     7  
     8  package env
     9  
    10  // Merge merges a given set of environment variables.
    11  func Merge(sets ...Vars) Vars {
    12  	output := Vars{}
    13  	for _, set := range sets {
    14  		for key, value := range set {
    15  			output[key] = value
    16  		}
    17  	}
    18  	return output
    19  }