github.com/anakojm/hugo-katex@v0.0.0-20231023141351-42d6f5de9c0b/tpl/internal/go_templates/testenv/testenv_notunix.go (about) 1 // Copyright 2021 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 || plan9 || (js && wasm) || wasip1 6 7 package testenv 8 9 import ( 10 "os" 11 ) 12 13 // Sigquit is the signal to send to kill a hanging subprocess. 14 // On Unix we send SIGQUIT, but on non-Unix we only have os.Kill. 15 var Sigquit = os.Kill 16 17 func syscallIsNotSupported(err error) bool { 18 // Removed by Hugo (not supported in Go 1.20). 19 return false 20 }