diff options
author | Arne Juul <arnej@yahooinc.com> | 2023-05-24 17:04:46 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahooinc.com> | 2023-05-24 18:38:35 +0000 |
commit | 801b46f85d04fbfee38b88312419393e20340571 (patch) | |
tree | d94e4daba396d0cc57fbfabb51a06821042f34c5 /client/go/internal/slime/nix_value.go | |
parent | 1d445d46f6c4662d64ff77c81b068163d4077479 (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.go | 22 |
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} |