github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/internal/syscall/execenv/execenv_windows.go (about) 1 // Copyright 2020 The Go Authors. 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 windows 6 7 package execenv 8 9 import ( 10 "github.com/shogo82148/std/syscall" 11 ) 12 13 // Default will return the default environment 14 // variables based on the process attributes 15 // provided. 16 // 17 // If the process attributes contain a token, then 18 // the environment variables will be sourced from 19 // the defaults for that user token, otherwise they 20 // will be sourced from syscall.Environ(). 21 func Default(sys *syscall.SysProcAttr) (env []string, err error)