This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package httpServer | |
import ( | |
"net/http" | |
) | |
/* | |
GIVEN MIDDLEWARES TO WIRE IN COMPONENTS LIKE: | |
func RequestIDMiddleware(makeTimeBasedUUIDFn func() string, next http.HandlerFunc) http.HandlerFunc { | |
fn := func(w http.ResponseWriter, r *http.Request) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function refreshenv | |
{ | |
powershell -NonInteractive - <<EOF | |
\$filename="C:\temp\refresh.env" | |
Write-Host("Updating environment session from chocolatey") | |
Import-Module "\$env:ChocolateyInstall\\helpers\\chocolateyProfile.psm1" | |
Update-SessionEnvironment | |
Write-Host("Scanning env") | |
# Round brackets in variable names cause problems with bash |