Ophestra Umiker
584732f80a
All checks were successful
test / test (push) Successful in 19s
This change also fixes a deadlock when shim fails to connect and complete the setup. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
13 lines
238 B
Go
13 lines
238 B
Go
package internal
|
|
|
|
const compPoison = "INVALIDINVALIDINVALIDINVALIDINVALID"
|
|
|
|
var (
|
|
Version = compPoison
|
|
)
|
|
|
|
// Check validates string value set at compile time.
|
|
func Check(s string) (string, bool) {
|
|
return s, s != compPoison && s != ""
|
|
}
|