mirror of
https://github.com/google/go-jsonnet.git
synced 2025-12-24 10:31:05 +01: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")]
|