mirror of
https://github.com/google/go-jsonnet.git
synced 2025-09-29 09:21:03 +02:00
6 lines
199 B
Jsonnet
6 lines
199 B
Jsonnet
local stringToBool(s) =
|
|
if s == "true" then true
|
|
else if s == "false" then false
|
|
else error "invalid boolean: " + std.manifestJson(s);
|
|
[stringToBool("false"), stringToBool("true")]
|