aboutsummaryrefslogtreecommitdiffstats
path: root/client/go/internal/slime/nix_value.go
diff options
context:
space:
mode:
authorArne Juul <arnej@yahooinc.com>2023-05-24 17:04:46 +0000
committerArne Juul <arnej@yahooinc.com>2023-05-24 18:38:35 +0000
commit801b46f85d04fbfee38b88312419393e20340571 (patch)
treed94e4daba396d0cc57fbfabb51a06821042f34c5 /client/go/internal/slime/nix_value.go
parent1d445d46f6c4662d64ff77c81b068163d4077479 (diff)
add minimal port of Slime APIarnej/golang-slime-port-1
Diffstat (limited to 'client/go/internal/slime/nix_value.go')
-rw-r--r--client/go/internal/slime/nix_value.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/client/go/internal/slime/nix_value.go b/client/go/internal/slime/nix_value.go
new file mode 100644
index 00000000000..57da619b547
--- /dev/null
+++ b/client/go/internal/slime/nix_value.go
@@ -0,0 +1,22 @@
+// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+// Author: arnej
+
+package slime
+
+type NixValue struct {
+ valueBase
+ valid bool
+}
+
+func (n *NixValue) Valid() bool {
+ return n.valid
+}
+
+func (n *NixValue) Type() Type {
+ return NIX
+}
+
+// actually constants:
+
+var ValidNix *NixValue = &NixValue{valid: true}
+var InvalidNix *NixValue = &NixValue{valid: false}